Skip to content

Commit

Permalink
Use JsonWebKey in tests for .kid
Browse files Browse the repository at this point in the history
  • Loading branch information
mccoyp committed Mar 5, 2021
1 parent ae2967b commit 0d2519f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def test_local_only_mode_no_service_calls():
"""A local-only CryptographyClient shouldn't call the service if an operation can't be performed locally"""

mock_client = mock.Mock()
jwk = mock.Mock(spec=JsonWebKey)
jwk = JsonWebKey()
client = CryptographyClient.from_jwk(jwk=jwk)
client._client = mock_client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ async def test_local_only_mode_no_service_calls():
"""A local-only CryptographyClient shouldn't call the service if an operation can't be performed locally"""

mock_client = mock.Mock()
jwk = mock.Mock(spec=JsonWebKey)
jwk = JsonWebKey()
client = CryptographyClient.from_jwk(jwk=jwk)
client._client = mock_client

Expand Down

0 comments on commit 0d2519f

Please sign in to comment.