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()