Metadata-Version: 2.1
Name: pytest-django-testing-postgresql
Version: 0.1
Summary: Use a temporary PostgreSQL database with pytest-django
Home-page: https://edugit.org/nik/pytest-django-testing-postgresql
Author: Dominik George
Author-email: nik@naturalnet.de
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Dist: dj-database-url
Requires-Dist: testing.postgresql

Temporary PostgreSQL databases for Django and pytest
====================================================

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
-----------

.. _testing.postgresql: https://pypi.org/project/testing.postgresql/
.. _pytest-django: https://pypi.org/project/pytest-django/


