From 2560bd1bb999cacdf390d51c4742d7bf99defb34 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 17:16:05 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- auditlog_tests/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auditlog_tests/tests.py b/auditlog_tests/tests.py index 1f34121..1ce319f 100644 --- a/auditlog_tests/tests.py +++ b/auditlog_tests/tests.py @@ -515,7 +515,9 @@ class MiddlewareTest(TestCase): def test_init_middleware(self): with override_settings(AUDITLOG_DISABLE_REMOTE_ADDR="str"): - with self.assertRaisesMessage(TypeError, "Setting 'AUDITLOG_DISABLE_REMOTE_ADDR' must be a boolean"): + with self.assertRaisesMessage( + TypeError, "Setting 'AUDITLOG_DISABLE_REMOTE_ADDR' must be a boolean" + ): AuditlogMiddleware() def test_disable_remote_addr(self):