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

Really configure database.

parent 0e744c6c
No related branches found
No related tags found
No related merge requests found
print('importing') from dj_database_url import parse
from django.conf import settings
from testing.postgresql import Postgresql
def pytest_configure(config): _postgresql = Postgresql()
print('configuring')
django.settings.DATABASES['default'] = parse(_postgresql.url())
...@@ -9,7 +9,7 @@ setup( ...@@ -9,7 +9,7 @@ setup(
url='https://edugit.org/nik/pytest-django-testing-postgresql', url='https://edugit.org/nik/pytest-django-testing-postgresql',
py_modules=['pytest_django_testing_postgresql'], py_modules=['pytest_django_testing_postgresql'],
install_requires=['testing.postgresql'], install_requires=['dj-database-url', 'testing.postgresql'],
entry_points = { entry_points = {
'pytest11': [ '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