From d1cf5059e47680cc0cd84c0726da2bfd507a16a2 Mon Sep 17 00:00:00 2001 From: Clifton Barnes Date: Wed, 6 Jan 2021 14:36:39 -0500 Subject: [PATCH] Fix formatting --- axes/tests/test_handlers.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/axes/tests/test_handlers.py b/axes/tests/test_handlers.py index 78f11bc..3e4548e 100644 --- a/axes/tests/test_handlers.py +++ b/axes/tests/test_handlers.py @@ -355,9 +355,11 @@ class AxesCacheHandlerTestCase(AxesHandlerBaseTestCase): def test_whitelist(self, log): self.check_whitelist(log) - @patch.object(cache, 'set') + @patch.object(cache, "set") @patch("axes.handlers.cache.log") - def test_user_login_failed_only_user_failures_with_none_username(self, log, cache_set): + def test_user_login_failed_only_user_failures_with_none_username( + self, log, cache_set + ): with self.settings(**{"AXES_ONLY_USER_FAILURES": True}): credentials = {"username": None, "password": "test"} sender = MagicMock() @@ -367,7 +369,7 @@ class AxesCacheHandlerTestCase(AxesHandlerBaseTestCase): "AXES: Username is None and AXES_ONLY_USER_FAILURES is enable, New record won't be created." ) - @patch.object(cache, 'set') + @patch.object(cache, "set") def test_user_login_failed_with_none_username(self, cache_set): credentials = {"username": None, "password": "test"} sender = MagicMock()