mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
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.
This commit is contained in:
parent
d2994e0596
commit
20f1203aac
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user