diff options
Diffstat (limited to 'tests/admin_docs/tests.py')
| -rw-r--r-- | tests/admin_docs/tests.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/admin_docs/tests.py b/tests/admin_docs/tests.py index d53cb80c94..3ab2970b90 100644 --- a/tests/admin_docs/tests.py +++ b/tests/admin_docs/tests.py @@ -1,23 +1,22 @@ from django.contrib.auth.models import User -from django.test import ( - SimpleTestCase, TestCase, modify_settings, override_settings, -) +from django.test import SimpleTestCase, TestCase, modify_settings, override_settings class TestDataMixin: - @classmethod def setUpTestData(cls): - cls.superuser = User.objects.create_superuser(username='super', password='secret', email='super@example.com') + cls.superuser = User.objects.create_superuser( + username="super", password="secret", email="super@example.com" + ) -@override_settings(ROOT_URLCONF='admin_docs.urls') -@modify_settings(INSTALLED_APPS={'append': 'django.contrib.admindocs'}) +@override_settings(ROOT_URLCONF="admin_docs.urls") +@modify_settings(INSTALLED_APPS={"append": "django.contrib.admindocs"}) class AdminDocsSimpleTestCase(SimpleTestCase): pass -@override_settings(ROOT_URLCONF='admin_docs.urls') -@modify_settings(INSTALLED_APPS={'append': 'django.contrib.admindocs'}) +@override_settings(ROOT_URLCONF="admin_docs.urls") +@modify_settings(INSTALLED_APPS={"append": "django.contrib.admindocs"}) class AdminDocsTestCase(TestCase): pass |
