Skip to content

Commit e99ea81

Browse files
authored
chore: clean redefinition of mock_jwk_module in backend tests (#855)
1 parent d9c7331 commit e99ea81

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/test_backends.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ def test_decode_rsa_aud_iss_jwk_success(self):
302302
# Payload copied
303303
self.payload["exp"] = datetime_to_epoch(self.payload["exp"])
304304

305-
mock_jwk_module = mock.MagicMock()
306305
with patch("rest_framework_simplejwt.backends.PyJWKClient") as mock_jwk_module:
307306
mock_jwk_client = mock.MagicMock()
308307
mock_signing_key = mock.MagicMock()
@@ -335,7 +334,6 @@ def test_decode_jwk_missing_key_raises_tokenbackenderror(self):
335334
headers={"kid": "230498151c214b788dd97f22b85410a5"},
336335
)
337336

338-
mock_jwk_module = mock.MagicMock()
339337
with patch("rest_framework_simplejwt.backends.PyJWKClient") as mock_jwk_module:
340338
mock_jwk_client = mock.MagicMock()
341339

0 commit comments

Comments
 (0)