Skip to content

Commit 2d4dbad

Browse files
authored
Merge pull request #1 from catalinsymphony/CAIP-46
Fix tests for stream service
2 parents 6cb86a0 + 7e82404 commit 2d4dbad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/core/service/stream/stream_service_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ async def test_search_rooms(mocked_api_client, stream_service, streams_api):
216216
search_results = await stream_service.search_rooms(search_criteria, skip, limit)
217217

218218
streams_api.v3_room_search_post.assert_called_once_with(query=search_criteria, skip=skip, limit=limit,
219+
include_non_discoverable=False,
219220
session_token=SESSION_TOKEN)
220221
assert search_results.count == 1
221222
assert len(search_results.rooms) == 1
@@ -234,6 +235,7 @@ async def test_search_all_rooms(mocked_api_client, stream_service, streams_api):
234235
search_results = [r async for r in gen]
235236

236237
streams_api.v3_room_search_post.assert_called_once_with(query=search_criteria, skip=0, limit=chunk_size,
238+
include_non_discoverable=False,
237239
session_token=SESSION_TOKEN)
238240
assert len(search_results) == 1
239241
assert search_results[0].room_attributes.name == "New room name"

0 commit comments

Comments
 (0)