Use a temporary PostgreSQL database with pytest-django
Project description
Use case
This pytest plugin can be used to test a Django application that uses PostgreSQL. It leverages the testing.postgresql module to setup a temporary PostgreSQL database server and injects the configuration for it into Django’s settings. It is intended to be used together with pytest-django.
Requirements
testing.postgresql needs the postgresql server binary available.
How to use
To use, simply install the package in your testing environment and laod the django-testing-psotgresql plugin when running pytest (pytest normally auto-discovers it).
The plugin re-uses the configuration used by pytest-django.
Limitations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest-django-testing-postgresql-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a116b939eea5f8197def4cc8188239d997e9143a94c9af6a4343febdd2c849de |
|
MD5 | fb2892aa02c7c51b9e590a0d65b6630f |
|
BLAKE2b-256 | 074eb6670b30ad74b42278a38e29c9d561e7df5021b48d7259233c14ef5d7448 |
Hashes for pytest_django_testing_postgresql-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13484412f23202e3d60489c768793ecb490c6b9613f3c6dec9ce62bebb03a0ee |
|
MD5 | a7f2b6fe856735d6a4a9afbe6c4df73f |
|
BLAKE2b-256 | a361a235772946c39813fc46fb310699059f0780f44666e76de91fe052ede210 |