@@ -35,8 +35,7 @@ def test_multi_search_on_no_index(client):
35
35
client .multi_search ([{"indexUid" : "indexDoesNotExist" , "q" : "" }])
36
36
37
37
38
- def test_multi_search_with_no_value_in_federation (client , empty_index ,
39
- index_with_documents ):
38
+ def test_multi_search_with_no_value_in_federation (client , empty_index , index_with_documents ):
40
39
"""Tests multi-search with federation, but no value"""
41
40
index_with_documents ()
42
41
empty_index ("indexB" )
@@ -50,13 +49,10 @@ def test_multi_search_with_no_value_in_federation(client, empty_index,
50
49
assert response ["offset" ] == 0
51
50
52
51
53
- def test_multi_search_with_offset_and_limit_in_federation (
54
- client ,
55
- index_with_documents ):
52
+ def test_multi_search_with_offset_and_limit_in_federation (client , index_with_documents ):
56
53
"""Tests multi-search with federation, with offset and limit value"""
57
54
index_with_documents ()
58
- response = client .multi_search ([{"indexUid" : INDEX_UID , "q" : "" }],
59
- {"offset" : 2 , "limit" : 2 })
55
+ response = client .multi_search ([{"indexUid" : INDEX_UID , "q" : "" }], {"offset" : 2 , "limit" : 2 })
60
56
61
57
assert "results" not in response
62
58
assert len (response ["hits" ]) == 2
@@ -69,8 +65,8 @@ def test_multi_search_with_federation_options(client, index_with_documents):
69
65
"""Tests multi-search with federation, with federation options"""
70
66
index_with_documents ()
71
67
response = client .multi_search (
72
- [{"indexUid" : INDEX_UID , "q" : "" ,
73
- "federationOptions" : { "weight" : 0.99 }}], { "limit" : 2 } )
68
+ [{"indexUid" : INDEX_UID , "q" : "" , "federationOptions" : { "weight" : 0.99 }}], { "limit" : 2 }
69
+ )
74
70
75
71
assert "results" not in response
76
72
assert isinstance (response ["hits" ], list )
0 commit comments