Skip to content

Commit afd4322

Browse files
committed
adjusted the testing env
1 parent 26e2952 commit afd4322

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/runtests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def setup_collect_tests(start_at, start_after, test_labels=None):
109109
}
110110

111111
settings.INSTALLED_APPS = ALWAYS_INSTALLED_APPS
112+
settings.ROOT_URLCONF = "urls"
112113
settings.LANGUAGE_CODE = "en"
113114
settings.SITE_ID = 1
114115
settings.MIDDLEWARE = ALWAYS_MIDDLEWARE

tests/urls.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""This URLconf exists because Django expects ROOT_URLCONF to exist. URLs
2+
should be added within the test folders, and use TestCase.urls to set them.
3+
This helps the tests remain isolated.
4+
"""
5+
6+
urlpatterns = []

0 commit comments

Comments
 (0)