Skip to content

Commit

Permalink
fixes more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Sep 25, 2024
1 parent 19a13bf commit 4989a8f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
10 changes: 5 additions & 5 deletions tests/thirdparty/test_emaildelivery.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def test_email_verify_default_backward_compatibility(
start_st()

resp = await manually_create_or_update_user(
"public", "supertokens", "test-user-id", "[email protected]", True, None
"public", "supertokens", "test-user-id", "[email protected]", False, None
)

s = SessionRecipe.get_instance()
Expand Down Expand Up @@ -214,7 +214,7 @@ async def test_email_verify_default_backward_compatibility_supress_error(
start_st()

resp = await manually_create_or_update_user(
"public", "supertokens", "test-user-id", "[email protected]", True, None
"public", "supertokens", "test-user-id", "[email protected]", False, None
)

s = SessionRecipe.get_instance()
Expand Down Expand Up @@ -304,7 +304,7 @@ async def send_email(
start_st()

resp = await manually_create_or_update_user(
"public", "supertokens", "test-user-id", "[email protected]", True, None
"public", "supertokens", "test-user-id", "[email protected]", False, None
)

s = SessionRecipe.get_instance()
Expand Down Expand Up @@ -382,7 +382,7 @@ async def send_email(
start_st()

resp = await manually_create_or_update_user(
"public", "supertokens", "test-user-id", "[email protected]", True, None
"public", "supertokens", "test-user-id", "[email protected]", False, None
)

s = SessionRecipe.get_instance()
Expand Down Expand Up @@ -522,7 +522,7 @@ async def send_email_override(
start_st()

resp = await manually_create_or_update_user(
"public", "supertokens", "test-user-id", "[email protected]", True, None
"public", "supertokens", "test-user-id", "[email protected]", False, None
)

s = SessionRecipe.get_instance()
Expand Down
12 changes: 6 additions & 6 deletions tests/thirdparty/test_multitenancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ async def test_thirtyparty_multitenancy_functions():
),
)

assert g_user_by_tpid1a == user1a.user
assert g_user_by_tpid1b == user1b.user
assert g_user_by_tpid2a == user2a.user
assert g_user_by_tpid2b == user2b.user
assert g_user_by_tpid3a == user3a.user
assert g_user_by_tpid3b == user3b.user
assert g_user_by_tpid1a == [user1a.user]
assert g_user_by_tpid1b == [user1b.user]
assert g_user_by_tpid2a == [user2a.user]
assert g_user_by_tpid2b == [user2b.user]
assert g_user_by_tpid3a == [user3a.user]
assert g_user_by_tpid3b == [user3b.user]


async def test_get_provider():
Expand Down
5 changes: 4 additions & 1 deletion tests/thirdparty/test_thirdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,7 @@ async def test_signinup_generating_fake_email(
assert res.status_code == 200
res_json = res.json()
assert res_json["status"] == "OK"
assert res_json["user"]["email"] == "[email protected]"
assert (
res_json["user"]["emails"][0] == "[email protected]"
)
assert len(res_json["user"]["emails"]) == 1

0 comments on commit 4989a8f

Please sign in to comment.