Skip to content

Commit 8978ee2

Browse files
Merge branch 'feature/chat-15-pinning-archiving-member-custom-data' of github.com:GetStream/stream-chat-python into feature/chat-15-pinning-archiving-member-custom-data
2 parents f161569 + a80505a commit 8978ee2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

stream_chat/tests/test_channel.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,17 +378,17 @@ def test_export_channel(
378378
break
379379
time.sleep(0.5)
380380

381-
def test_pin_channel(self, client: StreamChat, channel: Channel, random_users: List[Dict]):
381+
def test_pin_channel(
382+
self, client: StreamChat, channel: Channel, random_users: List[Dict]
383+
):
382384
user_id = random_users[0]["id"]
383-
384385
# Pin the channel
385386
response = channel.pin(user_id)
386387
assert response is not None
387388

388389
# Query for pinned channels
389390
response = client.query_channels(
390-
{"pinned": True, "cid": channel.cid},
391-
user_id=user_id
391+
{"pinned": True, "cid": channel.cid}, user_id=user_id
392392
)
393393
assert len(response["channels"]) == 1
394394
assert response["channels"][0]["cid"] == channel.cid
@@ -399,8 +399,7 @@ def test_pin_channel(self, client: StreamChat, channel: Channel, random_users: L
399399

400400
# Query for pinned channels
401401
response = client.query_channels(
402-
{"pinned": False, "cid": channel.cid},
403-
user_id=user_id
402+
{"pinned": False, "cid": channel.cid}, user_id=user_id
404403
)
405404
assert len(response["channels"]) == 1
406405
assert response["channels"][0]["cid"] == channel.cid

0 commit comments

Comments
 (0)