Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
totalimmersion committed Dec 6, 2024
1 parent 92aebe3 commit c551a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stream_chat/tests/async_chat/test_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,12 @@ async def test_update_member_partial(
await channel.add_members([user_id])

# Test setting a custom field
response = await channel.update_member_partial(user_id, set={"hat": "blue"})
response = await channel.update_member_partial(user_id, to_set={"hat": "blue"})
assert response["channel_member"]["hat"] == "blue"

# Test setting a new field while unsetting the previous one
response = await channel.update_member_partial(
user_id, set={"color": "red"}, unset=["hat"]
user_id, to_set={"color": "red"}, to_unset=["hat"]
)
assert response["channel_member"]["color"] == "red"
assert "hat" not in response["channel_member"]
4 changes: 2 additions & 2 deletions stream_chat/tests/test_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,12 @@ def test_update_member_partial(self, channel: Channel, random_users: List[Dict])
channel.add_members([user_id])

# Test setting a custom field
response = channel.update_member_partial(user_id, set={"hat": "blue"})
response = channel.update_member_partial(user_id, to_set={"hat": "blue"})
assert response["channel_member"]["hat"] == "blue"

# Test setting a new field while unsetting the previous one
response = channel.update_member_partial(
user_id, set={"color": "red"}, unset=["hat"]
user_id, to_set={"color": "red"}, to_unset=["hat"]
)
assert response["channel_member"]["color"] == "red"
assert "hat" not in response["channel_member"]

0 comments on commit c551a14

Please sign in to comment.