From c551a1433f0e41d5670d4caf416684e697e2c9f1 Mon Sep 17 00:00:00 2001 From: Lennart Kuijs Date: Fri, 6 Dec 2024 17:01:21 +0100 Subject: [PATCH] fix: test --- stream_chat/tests/async_chat/test_channel.py | 4 ++-- stream_chat/tests/test_channel.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stream_chat/tests/async_chat/test_channel.py b/stream_chat/tests/async_chat/test_channel.py index 0986d54..a266601 100644 --- a/stream_chat/tests/async_chat/test_channel.py +++ b/stream_chat/tests/async_chat/test_channel.py @@ -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"] diff --git a/stream_chat/tests/test_channel.py b/stream_chat/tests/test_channel.py index c29028f..522ea46 100644 --- a/stream_chat/tests/test_channel.py +++ b/stream_chat/tests/test_channel.py @@ -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"]