File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,19 @@ def test_algorithm_should_throw_exception_if_sign_not_impl(self):
25
25
algo = Algorithm ()
26
26
27
27
with pytest .raises (NotImplementedError ):
28
- algo .sign ("message" , "key" )
28
+ algo .sign (b "message" , "key" )
29
29
30
30
def test_algorithm_should_throw_exception_if_verify_not_impl (self ):
31
31
algo = Algorithm ()
32
32
33
33
with pytest .raises (NotImplementedError ):
34
- algo .verify ("message" , "key" , "signature" )
34
+ algo .verify (b "message" , "key" , b "signature" )
35
35
36
36
def test_algorithm_should_throw_exception_if_to_jwk_not_impl (self ):
37
37
algo = Algorithm ()
38
38
39
39
with pytest .raises (NotImplementedError ):
40
- algo .from_jwk ("value" )
40
+ algo .from_jwk ({ "val" : "ue" } )
41
41
42
42
def test_algorithm_should_throw_exception_if_from_jwk_not_impl (self ):
43
43
algo = Algorithm ()
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ def test_keyset_with_unknown_alg(self):
293
293
294
294
def test_invalid_keys_list (self ):
295
295
with pytest .raises (PyJWKSetError ) as err :
296
- PyJWKSet (keys = "string" )
296
+ PyJWKSet (keys = "string" ) # type: ignore
297
297
assert str (err .value ) == "Invalid JWK Set value"
298
298
299
299
def test_empty_keys_list (self ):
You can’t perform that action at this time.
0 commit comments