-
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.
* Formats all files with black * Fixes lint errors * Fixes black errors * Fixes errors for ruff v0.1.3 * Adds test dependencies * Adds environment to CI tests * Try: adding settings/test.py * Try with 'NAME' * Try with test for DJANGO_SETTINGS_MODULE * Try setting env in conftest * Try without conftest * Try with envs as environment secrets * Remove environment variable from CI workflow * Try with host postgres * Try with default HOST 127.0.0.1 * Update database settings with default test values * Retry with all test settings in conftest
- Loading branch information
Showing
8 changed files
with
1,106 additions
and
31 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from os import environ as env | ||
|
||
env['DJANGO_SETTINGS_MODULE'] = 'ov_wag.settings.test' | ||
env['OV_DB_HOST'] = 'localhost' | ||
env['OV_DB_PORT'] = '5432' | ||
env['OV_DB_NAME'] = 'ov' | ||
env['OV_DB_USER'] = 'postgres' | ||
env['OV_DB_PASSWORD'] = 'postgres' |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from contextlib import suppress | ||
|
||
from ov_wag.settings.base import * # noqa F403 | ||
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
DEBUG = True | ||
|
||
# SECURITY WARNING: keep the secret key used in production secret! | ||
SECRET_KEY = 'django-insecure-qsu^g!8&aye$7b@ucxwa6!**1y@&1uwzcf+rs0832)t-yp7zsp' | ||
|
||
# SECURITY WARNING: define the correct hosts in production! | ||
ALLOWED_HOSTS = ['*'] | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
|
||
|
||
with suppress(ImportError): | ||
from .local import * # noqa F403 |
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