generated from yunojuno/poetry-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3b892f
commit d993f80
Showing
4 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
from tests.settings import * # noqa | ||
from os import getenv | ||
|
||
import dj_database_url | ||
|
||
DEFAULT_DATABASE_URL = getenv( | ||
"DEFAULT_DATABASE_URL", | ||
"postgres://postgres@localhost:5432/django_anonymiser", | ||
) | ||
# NB this is obviously not a secure password, but it's only for testing | ||
DATABASES = { | ||
"default": { | ||
"ENGINE": "django.db.backends.postgresql", | ||
"NAME": "django_anonymiser", | ||
"USER": "postgres", | ||
"PASSWORD": "postgres", | ||
"HOST": "localhost", | ||
"PORT": "5432", | ||
} | ||
} | ||
DATABASES["default"] = dj_database_url.parse(DEFAULT_DATABASE_URL) # noqa: F405 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ commands = | |
|
||
[testenv:pg-only] | ||
deps = | ||
dj_database_url | ||
pytest | ||
pytest-django | ||
psycopg2-binary | ||
|