From 17389f3720fe6666e4b6bf0938e00e8ef124039b Mon Sep 17 00:00:00 2001 From: Lennart <1247198+totalimmersion@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:56:27 +0100 Subject: [PATCH 1/3] fix: update stream_chat/tests/async_chat/test_channel.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- stream_chat/tests/async_chat/test_channel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stream_chat/tests/async_chat/test_channel.py b/stream_chat/tests/async_chat/test_channel.py index 5881e6f..8c52a59 100644 --- a/stream_chat/tests/async_chat/test_channel.py +++ b/stream_chat/tests/async_chat/test_channel.py @@ -437,7 +437,9 @@ async def test_archive_channel( assert len(response["channels"]) == 1 assert response["channels"][0]["channel"]["cid"] == channel.cid - async def test_update_member_partial(self, channel: Channel, random_users: List[Dict]): + async def test_update_member_partial( + self, channel: Channel, random_users: List[Dict] + ): user_id = random_users[0]["id"] await channel.add_members([user_id]) From 42cc3f8ebcd588e40d4b470290991165e40758ce Mon Sep 17 00:00:00 2001 From: Lennart <1247198+totalimmersion@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:56:37 +0100 Subject: [PATCH 2/3] fix: update stream_chat/tests/async_chat/test_channel.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- stream_chat/tests/async_chat/test_channel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stream_chat/tests/async_chat/test_channel.py b/stream_chat/tests/async_chat/test_channel.py index 8c52a59..0986d54 100644 --- a/stream_chat/tests/async_chat/test_channel.py +++ b/stream_chat/tests/async_chat/test_channel.py @@ -449,9 +449,7 @@ async def test_update_member_partial( # 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, set={"color": "red"}, unset=["hat"] ) assert response["channel_member"]["color"] == "red" assert "hat" not in response["channel_member"] From e4a2c88fba25c6d504ea801c3b3f2b2dc051b30e Mon Sep 17 00:00:00 2001 From: Lennart <1247198+totalimmersion@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:56:47 +0100 Subject: [PATCH 3/3] fix: update stream_chat/tests/test_channel.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- stream_chat/tests/test_channel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stream_chat/tests/test_channel.py b/stream_chat/tests/test_channel.py index 058be63..c29028f 100644 --- a/stream_chat/tests/test_channel.py +++ b/stream_chat/tests/test_channel.py @@ -444,9 +444,7 @@ def test_update_member_partial(self, channel: Channel, random_users: List[Dict]) # Test setting a new field while unsetting the previous one response = channel.update_member_partial( - user_id, - set={"color": "red"}, - unset=["hat"] + user_id, set={"color": "red"}, unset=["hat"] ) assert response["channel_member"]["color"] == "red" assert "hat" not in response["channel_member"]