Skip to content

Commit 1106371

Browse files
committed
Support pyjwt-2.7.0 in test_bad_audience_jwt
Exception raised changed format.
1 parent 15925ff commit 1106371

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/rest_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3974,7 +3974,8 @@ def wh(s):
39743974
self.dummy_client.main()
39753975
# user will be 1 as there is no auth
39763976
self.assertTrue('1', self.db.getuid())
3977-
self.assertEqual(out[0], b'Invalid Login - Invalid audience')
3977+
self.assertIn(out[0], [b'Invalid Login - Invalid audience',
3978+
b"Invalid Login - Audience doesn't match"])
39783979

39793980
@skip_jwt
39803981
def test_bad_roles_jwt(self):

0 commit comments

Comments
 (0)