summaryrefslogtreecommitdiff
path: root/tests/admin_docs/tests.py
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2022-02-08 12:09:55 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-08 12:15:38 +0100
commit6a682b38e75d4c975b4c4493565a59f1bc14397c (patch)
tree0bd9cda550bea26238656d9f120d769e8b41bb9e /tests/admin_docs/tests.py
parente73ce08888e6f34d3f050377cfd2fbb733be94a9 (diff)
[4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
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