summaryrefslogtreecommitdiff
path: root/tests/admin_docs/tests.py
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2022-02-03 20:24:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch)
treef0506b668a013d0063e5fba3dbf4863b466713ba /tests/admin_docs/tests.py
parentf68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff)
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/admin_docs/tests.py')
-rw-r--r--tests/admin_docs/tests.py17
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