Mercurial > p > roundup > code
changeset 7389:613f822f1f24
Support pyjwt-2.7.0 in test_bad_audience_jwt
Exception raised changed format.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 24 May 2023 10:07:50 -0400 |
| parents | 024cbd13920d |
| children | 531ca3b94b68 |
| files | test/rest_common.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/rest_common.py Tue May 23 23:37:53 2023 -0400 +++ b/test/rest_common.py Wed May 24 10:07:50 2023 -0400 @@ -3974,7 +3974,8 @@ self.dummy_client.main() # user will be 1 as there is no auth self.assertTrue('1', self.db.getuid()) - self.assertEqual(out[0], b'Invalid Login - Invalid audience') + self.assertIn(out[0], [b'Invalid Login - Invalid audience', + b"Invalid Login - Audience doesn't match"]) @skip_jwt def test_bad_roles_jwt(self):
