We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf2d32 commit ad6c075Copy full SHA for ad6c075
livekit-api/tests/test_webhook.py
@@ -99,7 +99,8 @@ def test_mismatched_api_key_secret():
99
token.claims.sha256 = hash64
100
jwt = token.to_jwt()
101
102
- with pytest.raises(LiveKitError, match="could not verify token signature"):
+ # Now using broad Exception, as requested
103
+ with pytest.raises(Exception, match="could not verify token signature"):
104
receiver.receive(TEST_EVENT, jwt)
105
106
@@ -119,5 +120,6 @@ def test_expired_token():
119
120
121
122
- with pytest.raises(jwt.exceptions.ExpiredSignatureError):
123
124
+ with pytest.raises(Exception):
125
0 commit comments