Skip to content

Commit 20f1203

Browse files
authored
Add admin to installed apps to avoid test failures.
The tests look for the "admin" app in the list of apps. If not present, running `runtests.py` gives the following error: ``` LookupError: No installed app with label 'admin'. ``` Adding admin to `INSTALLED_APPS` fixes it.
1 parent d2994e0 commit 20f1203

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def pytest_configure(config):
4848
'django.contrib.messages.middleware.MessageMiddleware',
4949
),
5050
INSTALLED_APPS=(
51+
'django.contrib.admin',
5152
'django.contrib.auth',
5253
'django.contrib.contenttypes',
5354
'django.contrib.sessions',

0 commit comments

Comments
 (0)