Skip to content

Commit

Permalink
chore: clean redefinition of mock_jwk_module in backend tests (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrozdanic authored Jan 13, 2025
1 parent d9c7331 commit e99ea81
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit e99ea81

Please sign in to comment.