diff options
author | Asif Saif Uddin <auvipy@gmail.com> | 2022-05-30 16:26:29 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 16:26:29 +0600 |
commit | 08be27dfd2cd81c4846204f6507d082ffcbc0159 (patch) | |
tree | 04ca93096d0e14397feaabb138c87b6f39a277d4 /tests/test_api_jws.py | |
parent | b2f2079e6eeaf1a0f3b4244084ec7b8b6f8b05ec (diff) | |
parent | 8215bf8fd64db41fd7f4972fba905c4274a3e81c (diff) | |
download | pyjwt-py36.tar.gz |
Merge branch 'master' into py36py36
Diffstat (limited to 'tests/test_api_jws.py')
-rw-r--r-- | tests/test_api_jws.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_api_jws.py b/tests/test_api_jws.py index 0a0e295..23975fa 100644 --- a/tests/test_api_jws.py +++ b/tests/test_api_jws.py @@ -83,7 +83,7 @@ class TestJWS: def test_options_must_be_dict(self, jws): pytest.raises(TypeError, PyJWS, options=object()) - pytest.raises(TypeError, PyJWS, options=("something")) + pytest.raises((TypeError, ValueError), PyJWS, options=("something")) def test_encode_decode(self, jws, payload): secret = "secret" @@ -607,7 +607,7 @@ class TestJWS: with pytest.raises(TypeError): jws.decode(token, "secret", options=object()) - with pytest.raises(TypeError): + with pytest.raises((TypeError, ValueError)): jws.decode(token, "secret", options="something") def test_custom_json_encoder(self, jws, payload): |