mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
cef0a4ef78
commit
2560bd1bb9
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue