diff --git a/tests/unittests/general/web_middleware_test.py b/tests/unittests/general/web_middleware_test.py index 5af8914e86..b14039c597 100644 --- a/tests/unittests/general/web_middleware_test.py +++ b/tests/unittests/general/web_middleware_test.py @@ -29,6 +29,9 @@ def set_expiry(self, *_): def save(self, *_): pass + def cycle_key(self, *_): + pass + def test_set_account(): r = RequestFactory() diff --git a/tests/unittests/general/webfront_test.py b/tests/unittests/general/webfront_test.py index 5b23d931d5..1aecac9cce 100644 --- a/tests/unittests/general/webfront_test.py +++ b/tests/unittests/general/webfront_test.py @@ -23,6 +23,9 @@ def set_expiry(self, *_): def save(self, *_): pass + def cycle_key(self, *_): + pass + @patch("nav.web.auth.Account.save", new=MagicMock(return_value=True)) @patch("nav.web.auth.Account.objects.get", new=MagicMock(return_value=LDAP_ACCOUNT))