Skip to content
Snippets Groups Projects
Verified Commit 5a1dd933 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add README and udpate packaging metadata.

parent 201acc96
No related branches found
No related tags found
No related merge requests found
include LICENSE
include README.rst
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/
from os import path
from setuptools import setup
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name="pytest-django-testing-postgresql",
version='0.1',
description='Use a temporary PostgreSQL database with pytest-django',
long_description=long_description,
author='Dominik George',
author_email='nik@naturalnet.de',
url='https://edugit.org/nik/pytest-django-testing-postgresql',
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Pytest',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3'
],
py_modules=['pytest_django_testing_postgresql'],
install_requires=['dj-database-url', 'testing.postgresql'],
zip_safe=False,
entry_points = {
'pytest11': [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment