Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

test(organizations): fit the OIDC store tests to main's OidcUser and link_by_email

Petr Bauch7614b0dfc46b
diff --git a/core/tests/switch_core/db/stores/test_user_store_oidc.py b/core/tests/switch_core/db/stores/test_user_store_oidc.py
index be3124669..d1c1d095f 100644
--- a/core/tests/switch_core/db/stores/test_user_store_oidc.py
+++ b/core/tests/switch_core/db/stores/test_user_store_oidc.py
@@ -26,7 +26,7 @@ class TestGetOrCreateOidcUser:
is written."""
store = UserStore()
async with session_factory() as session:
- existing = await store.get_or_create_oidc_user(
+ existing, _ = await store.get_or_create_oidc_user(
session,
iss="https://password.example",
@@ -91,6 +91,7 @@ class TestGetOrCreateOidcUser:
sub="okta|9",
email_verified=True,
join_tenant=True,
+ link_by_email=True,
)
assert (returning.id, created_again) == (user.id, False)