From 20f1203aaca951d58afe01a31ac7c7a056dd70c5 Mon Sep 17 00:00:00 2001 From: Chandrakant Gopalan Date: Fri, 9 Mar 2018 13:04:15 -0500 Subject: [PATCH] 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. --- tests/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/conftest.py b/tests/conftest.py index 927ddee62..27558c02b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -48,6 +48,7 @@ def pytest_configure(config): 'django.contrib.messages.middleware.MessageMiddleware', ), INSTALLED_APPS=( + 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions',