We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2591d22 commit a5e2f37Copy full SHA for a5e2f37
1 file changed
stream/tests/test_client.py
@@ -375,11 +375,9 @@ def test_token_retrieval(self):
375
def test_user_session_token(self):
376
client = stream.connect(self.c.api_key, self.c.api_secret)
377
token = client.create_user_session_token("user")
378
- self.assertEqual(token[:59], "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidXNlci")
379
payload = jwt.decode(token, self.c.api_secret)
380
self.assertEqual(payload["user_id"], "user")
381
token = client.create_user_session_token("user", client="python", testing=True)
382
383
384
self.assertEqual(payload["client"], "python")
385
self.assertEqual(payload["testing"], True)
0 commit comments