Skip to content

Commit 556ab00

Browse files
fix: test
1 parent 8978ee2 commit 556ab00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stream_chat/tests/test_channel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ def test_pin_channel(
382382
self, client: StreamChat, channel: Channel, random_users: List[Dict]
383383
):
384384
user_id = random_users[0]["id"]
385+
channel.add_members([user_id])
386+
385387
# Pin the channel
386388
response = channel.pin(user_id)
387389
assert response is not None
@@ -390,6 +392,7 @@ def test_pin_channel(
390392
response = client.query_channels(
391393
{"pinned": True, "cid": channel.cid}, user_id=user_id
392394
)
395+
print(response)
393396
assert len(response["channels"]) == 1
394397
assert response["channels"][0]["cid"] == channel.cid
395398

0 commit comments

Comments
 (0)