-
Notifications
You must be signed in to change notification settings - Fork 3
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
GitHub Actions
committed
Aug 12, 2024
1 parent
12470da
commit 569c027
Showing
15 changed files
with
120 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: ffee2c1 | ||
_commit: 637cc27 | ||
_src_path: . | ||
admin_email: [email protected] | ||
author_email: [email protected] | ||
|
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,45 +1,11 @@ | ||
from __future__ import annotations | ||
|
||
import logging | ||
import os | ||
|
||
import pytest | ||
from django.test.utils import override_settings | ||
|
||
pytest_plugins = [] # type: ignore | ||
pytest_plugins = [] | ||
|
||
|
||
def pytest_configure(config): | ||
logging.disable(logging.CRITICAL) | ||
|
||
|
||
TEST_SETTINGS = { | ||
"DEBUG": False, | ||
"CACHES": { | ||
"default": { | ||
"BACKEND": "django.core.cache.backends.dummy.DummyCache", | ||
} | ||
}, | ||
"EMAIL_BACKEND": "django.core.mail.backends.locmem.EmailBackend", | ||
"LOGGING_CONFIG": None, | ||
"PASSWORD_HASHERS": [ | ||
"django.contrib.auth.hashers.MD5PasswordHasher", | ||
], | ||
"Q_CLUSTER": { | ||
"sync": True, | ||
}, | ||
"STORAGES": { | ||
"default": { | ||
"BACKEND": "django.core.files.storage.InMemoryStorage", | ||
}, | ||
"staticfiles": { | ||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", | ||
}, | ||
}, | ||
"WHITENOISE_AUTOREFRESH": True, | ||
} | ||
|
||
|
||
@pytest.fixture(autouse=True, scope="session") | ||
def use_test_settings(): | ||
with override_settings(**TEST_SETTINGS): | ||
yield | ||
os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings" |
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,34 @@ | ||
from __future__ import annotations | ||
|
||
from django.conf import settings | ||
|
||
from default.settings import * # noqa: F403 | ||
|
||
DEBUG = False | ||
|
||
CACHES = { | ||
"default": { | ||
"BACKEND": "django.core.cache.backends.dummy.DummyCache", | ||
} | ||
} | ||
|
||
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend" | ||
|
||
LOGGING_CONFIG = None | ||
|
||
PASSWORD_HASHERS = [ | ||
"django.contrib.auth.hashers.MD5PasswordHasher", | ||
] | ||
|
||
Q_CLUSTER = settings.Q_CLUSTER | {"sync": True} | ||
|
||
STORAGES = { | ||
"default": { | ||
"BACKEND": "django.core.files.storage.InMemoryStorage", | ||
}, | ||
"staticfiles": { | ||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", | ||
}, | ||
} | ||
|
||
WHITENOISE_AUTOREFRESH = True |
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,5 +1,5 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: 8543b64 | ||
_commit: d08b482 | ||
_src_path: . | ||
admin_email: [email protected] | ||
author_email: [email protected] | ||
|
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,45 +1,11 @@ | ||
from __future__ import annotations | ||
|
||
import logging | ||
import os | ||
|
||
import pytest | ||
from django.test.utils import override_settings | ||
|
||
pytest_plugins = [] # type: ignore | ||
pytest_plugins = [] | ||
|
||
|
||
def pytest_configure(config): | ||
logging.disable(logging.CRITICAL) | ||
|
||
|
||
TEST_SETTINGS = { | ||
"DEBUG": False, | ||
"CACHES": { | ||
"default": { | ||
"BACKEND": "django.core.cache.backends.dummy.DummyCache", | ||
} | ||
}, | ||
"EMAIL_BACKEND": "django.core.mail.backends.locmem.EmailBackend", | ||
"LOGGING_CONFIG": None, | ||
"PASSWORD_HASHERS": [ | ||
"django.contrib.auth.hashers.MD5PasswordHasher", | ||
], | ||
"Q_CLUSTER": { | ||
"sync": True, | ||
}, | ||
"STORAGES": { | ||
"default": { | ||
"BACKEND": "django.core.files.storage.InMemoryStorage", | ||
}, | ||
"staticfiles": { | ||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", | ||
}, | ||
}, | ||
"WHITENOISE_AUTOREFRESH": True, | ||
} | ||
|
||
|
||
@pytest.fixture(autouse=True, scope="session") | ||
def use_test_settings(): | ||
with override_settings(**TEST_SETTINGS): | ||
yield | ||
os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings" |
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,34 @@ | ||
from __future__ import annotations | ||
|
||
from django.conf import settings | ||
|
||
from default.settings import * # noqa: F403 | ||
|
||
DEBUG = False | ||
|
||
CACHES = { | ||
"default": { | ||
"BACKEND": "django.core.cache.backends.dummy.DummyCache", | ||
} | ||
} | ||
|
||
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend" | ||
|
||
LOGGING_CONFIG = None | ||
|
||
PASSWORD_HASHERS = [ | ||
"django.contrib.auth.hashers.MD5PasswordHasher", | ||
] | ||
|
||
Q_CLUSTER = settings.Q_CLUSTER | {"sync": True} | ||
|
||
STORAGES = { | ||
"default": { | ||
"BACKEND": "django.core.files.storage.InMemoryStorage", | ||
}, | ||
"staticfiles": { | ||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", | ||
}, | ||
} | ||
|
||
WHITENOISE_AUTOREFRESH = True |
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,5 +1,5 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: 476b6f4 | ||
_commit: 3d71483 | ||
_src_path: . | ||
admin_email: [email protected] | ||
author_email: [email protected] | ||
|
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,45 +1,11 @@ | ||
from __future__ import annotations | ||
|
||
import logging | ||
import os | ||
|
||
import pytest | ||
from django.test.utils import override_settings | ||
|
||
pytest_plugins = [] # type: ignore | ||
pytest_plugins = [] | ||
|
||
|
||
def pytest_configure(config): | ||
logging.disable(logging.CRITICAL) | ||
|
||
|
||
TEST_SETTINGS = { | ||
"DEBUG": False, | ||
"CACHES": { | ||
"default": { | ||
"BACKEND": "django.core.cache.backends.dummy.DummyCache", | ||
} | ||
}, | ||
"EMAIL_BACKEND": "django.core.mail.backends.locmem.EmailBackend", | ||
"LOGGING_CONFIG": None, | ||
"PASSWORD_HASHERS": [ | ||
"django.contrib.auth.hashers.MD5PasswordHasher", | ||
], | ||
"Q_CLUSTER": { | ||
"sync": True, | ||
}, | ||
"STORAGES": { | ||
"default": { | ||
"BACKEND": "django.core.files.storage.InMemoryStorage", | ||
}, | ||
"staticfiles": { | ||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", | ||
}, | ||
}, | ||
"WHITENOISE_AUTOREFRESH": True, | ||
} | ||
|
||
|
||
@pytest.fixture(autouse=True, scope="session") | ||
def use_test_settings(): | ||
with override_settings(**TEST_SETTINGS): | ||
yield | ||
os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings" |
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,34 @@ | ||
from __future__ import annotations | ||
|
||
from django.conf import settings | ||
|
||
from with_vite.settings import * # noqa: F403 | ||
|
||
DEBUG = False | ||
|
||
CACHES = { | ||
"default": { | ||
"BACKEND": "django.core.cache.backends.dummy.DummyCache", | ||
} | ||
} | ||
|
||
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend" | ||
|
||
LOGGING_CONFIG = None | ||
|
||
PASSWORD_HASHERS = [ | ||
"django.contrib.auth.hashers.MD5PasswordHasher", | ||
] | ||
|
||
Q_CLUSTER = settings.Q_CLUSTER | {"sync": True} | ||
|
||
STORAGES = { | ||
"default": { | ||
"BACKEND": "django.core.files.storage.InMemoryStorage", | ||
}, | ||
"staticfiles": { | ||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", | ||
}, | ||
} | ||
|
||
WHITENOISE_AUTOREFRESH = True |
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