We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa9c078 commit a4960f3Copy full SHA for a4960f3
config/django/test.py
@@ -0,0 +1,16 @@
1
+from .base import * # noqa
2
+
3
+# Based on https://www.hacksoft.io/blog/optimize-django-build-to-run-faster-on-github-actions
4
5
+DEBUG = False
6
+PASSWORD_HASHERS = ['django.contrib.auth.hashers.MD5PasswordHasher']
7
8
+CELERY_BROKER_BACKEND = "memory"
9
+CELERY_TASK_ALWAYS_EAGER = True
10
+CELERY_TASK_EAGER_PROPAGATES = True
11
12
+CACHES = {
13
+ "default": {
14
+ "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
15
+ }
16
+}
pytest.ini
@@ -1,5 +1,5 @@
# -- FILE: pytest.ini (or tox.ini)
[pytest]
-DJANGO_SETTINGS_MODULE = config.django.base
+DJANGO_SETTINGS_MODULE = config.django.test
# -- recommended but optional:
python_files = tests.py test_*.py *_tests.py
0 commit comments