Skip to content

Commit e976e3f

Browse files
committed
Update tests and update org membership docs
1 parent 0a8f15d commit e976e3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def test_authenticate_success_with_roles(
285285
"org_id": session_constants["ORGANIZATION_ID"],
286286
"role": "admin",
287287
"roles": ["admin", "member"],
288-
"permissions": ["read"],
288+
"permissions": ["read", "write"],
289289
"entitlements": ["feature_1"],
290290
"exp": int(datetime.now(timezone.utc).timestamp()) + 3600,
291291
"iat": int(datetime.now(timezone.utc).timestamp()),
@@ -310,7 +310,7 @@ def test_authenticate_success_with_roles(
310310
"org_id": session_constants["ORGANIZATION_ID"],
311311
"role": "admin",
312312
"roles": ["admin", "member"],
313-
"permissions": ["read"],
313+
"permissions": ["read", "write"],
314314
"entitlements": ["feature_1"],
315315
}
316316

@@ -329,7 +329,7 @@ def test_authenticate_success_with_roles(
329329
assert response.organization_id == session_constants["ORGANIZATION_ID"]
330330
assert response.role == "admin"
331331
assert response.roles == ["admin", "member"]
332-
assert response.permissions == ["read"]
332+
assert response.permissions == ["read", "write"]
333333
assert response.entitlements == ["feature_1"]
334334
assert response.user.id == session_constants["USER_ID"]
335335
assert response.impersonator is None

workos/user_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def update_organization_membership(
285285
286286
Note:
287287
role_slug and role_slugs are mutually exclusive. If neither is provided,
288-
the user will be assigned the organization's default role.
288+
the role(s) of the membership will remain unchanged.
289289
290290
Returns:
291291
OrganizationMembership: Updated OrganizationMembership response from WorkOS.

0 commit comments

Comments
 (0)