Skip to content

Commit bfbe58d

Browse files
committed
Fix misc type complaints in tests
1 parent b6ac372 commit bfbe58d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_algorithms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ def test_algorithm_should_throw_exception_if_sign_not_impl(self):
2525
algo = Algorithm()
2626

2727
with pytest.raises(NotImplementedError):
28-
algo.sign("message", "key")
28+
algo.sign(b"message", "key")
2929

3030
def test_algorithm_should_throw_exception_if_verify_not_impl(self):
3131
algo = Algorithm()
3232

3333
with pytest.raises(NotImplementedError):
34-
algo.verify("message", "key", "signature")
34+
algo.verify(b"message", "key", b"signature")
3535

3636
def test_algorithm_should_throw_exception_if_to_jwk_not_impl(self):
3737
algo = Algorithm()
3838

3939
with pytest.raises(NotImplementedError):
40-
algo.from_jwk("value")
40+
algo.from_jwk({"val": "ue"})
4141

4242
def test_algorithm_should_throw_exception_if_from_jwk_not_impl(self):
4343
algo = Algorithm()

tests/test_api_jwk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def test_keyset_with_unknown_alg(self):
293293

294294
def test_invalid_keys_list(self):
295295
with pytest.raises(PyJWKSetError) as err:
296-
PyJWKSet(keys="string")
296+
PyJWKSet(keys="string") # type: ignore
297297
assert str(err.value) == "Invalid JWK Set value"
298298

299299
def test_empty_keys_list(self):

0 commit comments

Comments
 (0)