Skip to content

Commit

Permalink
Regenerated examples for 12470da
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Aug 12, 2024
1 parent 12470da commit 569c027
Show file tree
Hide file tree
Showing 15 changed files with 120 additions and 120 deletions.
2 changes: 1 addition & 1 deletion examples/default/.copier/project.yml
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]
Expand Down
2 changes: 1 addition & 1 deletion examples/default/default/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@

SECRET_KEY = env.str(
"SECRET_KEY",
default="cb25303b72af90c924b8013c01af720789d57e0bd43370415318c69ba11010d9",
default="d5ef6bf81c99daa8960c9b6a59e1c979af58ef8fd8a89487fd22a9d3655015a3",
)

SECURE_HSTS_INCLUDE_SUBDOMAINS = not DEBUG
Expand Down
2 changes: 1 addition & 1 deletion examples/default/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ module = [
ignore_missing_model_attributes = true

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "default.settings"
DJANGO_SETTINGS_MODULE = "tests.settings"
addopts = "--reuse-db -n auto --dist loadfile --cov=default --cov-report= --cov-config=pyproject.toml"
norecursedirs = ".* bin build dist *.egg htmlcov logs node_modules static templates venv"
python_files = "tests.py test_*.py *_tests.py"
Expand Down
40 changes: 3 additions & 37 deletions examples/default/tests/conftest.py
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"
34 changes: 34 additions & 0 deletions examples/default/tests/settings.py
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
2 changes: 1 addition & 1 deletion examples/postgis/.copier/project.yml
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]
Expand Down
2 changes: 1 addition & 1 deletion examples/postgis/default/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@

SECRET_KEY = env.str(
"SECRET_KEY",
default="1b8cabd5523f8333e96ae3f963bcdc6616e35a9774a65714c7d1fec100bc89d3",
default="2788e07dc7d33ce5bae2a621077a35d3fa9247a2c501fa3f6502bab20367eb6c",
)

SECURE_HSTS_INCLUDE_SUBDOMAINS = not DEBUG
Expand Down
2 changes: 1 addition & 1 deletion examples/postgis/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ module = [
ignore_missing_model_attributes = true

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "default.settings"
DJANGO_SETTINGS_MODULE = "tests.settings"
addopts = "--reuse-db -n auto --dist loadfile --cov=default --cov-report= --cov-config=pyproject.toml"
norecursedirs = ".* bin build dist *.egg htmlcov logs node_modules static templates venv"
python_files = "tests.py test_*.py *_tests.py"
Expand Down
40 changes: 3 additions & 37 deletions examples/postgis/tests/conftest.py
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"
34 changes: 34 additions & 0 deletions examples/postgis/tests/settings.py
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
2 changes: 1 addition & 1 deletion examples/with_vite/.copier/project.yml
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]
Expand Down
2 changes: 1 addition & 1 deletion examples/with_vite/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ module = [
ignore_missing_model_attributes = true

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "with_vite.settings"
DJANGO_SETTINGS_MODULE = "tests.settings"
addopts = "--reuse-db -n auto --dist loadfile --cov=with_vite --cov-report= --cov-config=pyproject.toml"
norecursedirs = ".* bin build dist *.egg htmlcov logs node_modules static templates venv"
python_files = "tests.py test_*.py *_tests.py"
Expand Down
40 changes: 3 additions & 37 deletions examples/with_vite/tests/conftest.py
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"
34 changes: 34 additions & 0 deletions examples/with_vite/tests/settings.py
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
2 changes: 1 addition & 1 deletion examples/with_vite/with_vite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@

SECRET_KEY = env.str(
"SECRET_KEY",
default="cb845e7a7eddd73d496a26c70939bd54d583688b3aa1fe8967f73c04989af96f",
default="388f0e7e7f10868de7c5655bd64089249ea9d9a3142c36f3afef42dc75586d08",
)

SECURE_HSTS_INCLUDE_SUBDOMAINS = not DEBUG
Expand Down

0 comments on commit 569c027

Please sign in to comment.