Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class OrganizationMembership(WorkOSModel):
id: str
user_id: str
organization_id: str
organization_name: str
role: OrganizationMembershipRole
roles: Optional[Sequence[OrganizationMembershipRole]] = None
status: LiteralOrUntyped[OrganizationMembershipStatus]
Expand Down
1 change: 1 addition & 0 deletions tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_list_events_organization_membership_missing_custom_attributes(
"id": "om_01234",
"user_id": "user_01234",
"organization_id": "org_01234",
"organization_name": "Foo Corp",
"role": {"slug": "member"},
"status": "active",
"created_at": "2024-01-01T00:00:00.000Z",
Expand Down
1 change: 1 addition & 0 deletions tests/utils/fixtures/mock_organization_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def __init__(self, id):
id=id,
user_id="user_12345",
organization_id="org_67890",
organization_name="Foo Corp",
status="active",
role={"slug": "member"},
custom_attributes={},
Expand Down