Skip to content

Commit 96234e1

Browse files
committed
test: Update tests for v4 tokens with multitenancy
1 parent bff0cbd commit 96234e1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/sessions/claims/test_create_new_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def test_create_access_token_payload_with_session_claims(timestamp: int):
3131
s = await create_new_session(dummy_req, "someId")
3232

3333
payload = s.get_access_token_payload()
34-
assert len(payload) == 9
34+
assert len(payload) == 10
3535
assert payload["st-true"] == {"v": True, "t": timestamp}
3636

3737

@@ -44,7 +44,7 @@ async def test_should_create_access_token_payload_with_session_claims_with_an_no
4444
s = await create_new_session(dummy_req, "someId")
4545

4646
payload = s.get_access_token_payload()
47-
assert len(payload) == 8
47+
assert len(payload) == 9
4848
assert payload.get("st-true") is None
4949

5050

tests/sessions/test_access_token_v3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
pytestmark = pytest.mark.asyncio
2222

2323

24-
async def test_access_token_v3():
24+
async def test_access_token_v4():
2525
init(**get_st_init_args([session.init()])) # type:ignore
2626
start_st()
2727

@@ -39,6 +39,7 @@ async def test_access_token_v3():
3939
False,
4040
)
4141
assert res["userId"] == "user-id"
42+
assert parsed_info.version == 4
4243

4344

4445
async def test_parsing_access_token_v2():

0 commit comments

Comments
 (0)