Skip to content

Commit 360fd74

Browse files
committed
test config
1 parent 7fafb35 commit 360fd74

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

project/config/settings/test.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
"DJANGO_SECRET_KEY",
1515
default="AcnZMguCngDeMgbwXf6l9d2arow2lU9ZkDweNnoCZmZ2qH6pinB4tLhEYI4Fgf6Y",
1616
)
17-
# https://docs.djangoproject.com/en/dev/ref/settings/#test-runner
18-
TEST_RUNNER = "django.test.runner.DiscoverRunner"
1917

2018
# CACHES
2119
# ------------------------------------------------------------------------------
@@ -27,11 +25,6 @@
2725
}
2826
}
2927

30-
# PASSWORDS
31-
# ------------------------------------------------------------------------------
32-
# https://docs.djangoproject.com/en/dev/ref/settings/#password-hashers
33-
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
34-
3528
# TEMPLATES
3629
# ------------------------------------------------------------------------------
3730
TEMPLATES[0]["OPTIONS"]["loaders"] = [ # noqa F405

project/pytest.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[pytest]
2+
python_files = tests.py test_*.py *_tests.py
3+
norecursedirs = staticfiles .git templates __pycache__
4+
DJANGO_SETTINGS_MODULE = config.settings.test
5+
FAIL_INVALID_TEMPLATE_VARS = 1

0 commit comments

Comments
 (0)