summaryrefslogtreecommitdiff
path: root/tests/admin_autodiscover
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_autodiscover
parentf68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff)
downloaddjango-9c19aff7c7561e3a82978a272ecdaad40dda5c00.tar.gz
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/admin_autodiscover')
-rw-r--r--tests/admin_autodiscover/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/admin_autodiscover/tests.py b/tests/admin_autodiscover/tests.py
index b15060ade8..66de74f2a5 100644
--- a/tests/admin_autodiscover/tests.py
+++ b/tests/admin_autodiscover/tests.py
@@ -7,11 +7,12 @@ class AdminAutoDiscoverTests(SimpleTestCase):
Test for bug #8245 - don't raise an AlreadyRegistered exception when using
autodiscover() and an admin.py module contains an error.
"""
+
def test_double_call_autodiscover(self):
# The first time autodiscover is called, we should get our real error.
- with self.assertRaisesMessage(Exception, 'Bad admin module'):
+ with self.assertRaisesMessage(Exception, "Bad admin module"):
admin.autodiscover()
# Calling autodiscover again should raise the very same error it did
# the first time, not an AlreadyRegistered error.
- with self.assertRaisesMessage(Exception, 'Bad admin module'):
+ with self.assertRaisesMessage(Exception, "Bad admin module"):
admin.autodiscover()