From e99ea810115b8391e4de35641906f13dfc2c1c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vjeran=20Grozdani=C4=87?= Date: Mon, 13 Jan 2025 01:59:12 +0100 Subject: [PATCH] chore: clean redefinition of mock_jwk_module in backend tests (#855) --- tests/test_backends.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/test_backends.py b/tests/test_backends.py index 4954588db..47b22228d 100644 --- a/tests/test_backends.py +++ b/tests/test_backends.py @@ -302,7 +302,6 @@ def test_decode_rsa_aud_iss_jwk_success(self): # Payload copied self.payload["exp"] = datetime_to_epoch(self.payload["exp"]) - mock_jwk_module = mock.MagicMock() with patch("rest_framework_simplejwt.backends.PyJWKClient") as mock_jwk_module: mock_jwk_client = mock.MagicMock() mock_signing_key = mock.MagicMock() @@ -335,7 +334,6 @@ def test_decode_jwk_missing_key_raises_tokenbackenderror(self): headers={"kid": "230498151c214b788dd97f22b85410a5"}, ) - mock_jwk_module = mock.MagicMock() with patch("rest_framework_simplejwt.backends.PyJWKClient") as mock_jwk_module: mock_jwk_client = mock.MagicMock()