From e8ce41bfbb351c0dde210d8172d5bd70d7a3ef13 Mon Sep 17 00:00:00 2001 From: Ejiro Asiuwhu Date: Wed, 25 Mar 2026 01:39:56 +0100 Subject: [PATCH] fix: update team member profile test to include required user_id field The user_id field was added to TeamMemberProfile during team management implementation but the pre-existing model test was not updated. --- sdks/implementations/python/tests/test_models/test_teams.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdks/implementations/python/tests/test_models/test_teams.py b/sdks/implementations/python/tests/test_models/test_teams.py index e1c2ca5d4..727e14bcc 100644 --- a/sdks/implementations/python/tests/test_models/test_teams.py +++ b/sdks/implementations/python/tests/test_models/test_teams.py @@ -66,17 +66,19 @@ class TestTeamMemberProfile: from stack_auth.models.teams import TeamMemberProfile data = { + "userId": "user1", "displayName": "John", "profileImageUrl": "https://example.com/img.png", } profile = TeamMemberProfile.model_validate(data) + assert profile.user_id == "user1" assert profile.display_name == "John" assert profile.profile_image_url == "https://example.com/img.png" def test_nullable_fields(self) -> None: from stack_auth.models.teams import TeamMemberProfile - data = {} + data = {"userId": "user1"} profile = TeamMemberProfile.model_validate(data) assert profile.display_name is None assert profile.profile_image_url is None