Skip to content

Commit 9c4124c

Browse files
committed
Adding Test cases for remote-search
1 parent 73e7e6a commit 9c4124c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/client/test_client_multi_search_meilisearch.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@ def test_multi_search_with_network(client, index_with_documents):
8181
"""Tests multi-search with network, with federation options."""
8282
index_with_documents()
8383
response = client.multi_search(
84-
[{"indexUid": INDEX_UID, "q": "", "federationOptions": {"remote": REMOTE_MS_1}}], federation={}
84+
[{"indexUid": INDEX_UID, "q": "", "federationOptions": {"remote": REMOTE_MS_1}}],
85+
federation={},
8586
)
8687

8788
assert "results" not in response
8889
assert isinstance(response["hits"], list)
8990
assert len(response["hits"]) >= 0
90-
assert response['hits'][0]["_federation"]["indexUid"] == INDEX_UID
91-
assert response['hits'][0]["_federation"]["remote"] == REMOTE_MS_1
91+
assert response["hits"][0]["_federation"]["indexUid"] == INDEX_UID
92+
assert response["hits"][0]["_federation"]["remote"] == REMOTE_MS_1
9293
assert response["remoteErrors"] == {}

0 commit comments

Comments
 (0)