Skip to content

Commit 2643b70

Browse files
Fix KeyError on test_export_channel. Fix typo umute to unmute (#80)
1 parent d11b1af commit 2643b70

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

stream_chat/tests/async_chat/test_channel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ async def test_query_members(self, event_loop, client, channel):
280280
assert response[1]["user"]["id"] == "john2"
281281

282282
@pytest.mark.asyncio
283-
async def test_mute_umute(self, event_loop, client, channel, random_users):
283+
async def test_mute_unmute(self, event_loop, client, channel, random_users):
284284
user_id = random_users[0]["id"]
285285
response = await channel.mute(user_id, expiration=30000)
286286
assert "channel_mute" in response
@@ -324,6 +324,5 @@ async def test_export_channel(self, client, channel, random_users):
324324
if resp["status"] == "completed":
325325
assert len(resp["result"]) != 0
326326
assert resp["result"]["url"] != ""
327-
assert len(resp["error"]) != 0
328327
break
329328
time.sleep(0.5)

stream_chat/tests/test_channel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,5 @@ def test_export_channel(self, client, channel, random_users):
295295
if resp["status"] == "completed":
296296
assert len(resp["result"]) != 0
297297
assert resp["result"]["url"] != ""
298-
assert len(resp["error"]) != 0
299298
break
300299
time.sleep(0.5)

0 commit comments

Comments
 (0)