Skip to content

Commit 3b98be1

Browse files
committed
Fix test after last rc
1 parent 85c0703 commit 3b98be1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

meilisearch/tests/index/test_index_search_meilisearch.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -220,51 +220,51 @@ def test_custom_search_params_with_sort_string(index_with_documents):
220220
update = index.update_sortable_attributes(['title'])
221221
index.wait_for_pending_update(update['updateId'])
222222
response = index.search(
223-
'world',
223+
'dark',
224224
{
225225
'sort': ['title:asc']
226226
}
227227
)
228228
assert isinstance(response, dict)
229-
assert len(response['hits']) == 12
229+
assert len(response['hits']) == 2
230230
assert 'facetsDistribution' not in response
231231
assert 'exhaustiveFacetsCount' not in response
232-
assert response['hits'][0]['title'] == 'Alita: Battle Angel'
233-
assert response['hits'][1]['title'] == 'Aquaman'
232+
assert response['hits'][0]['title'] == 'After'
233+
assert response['hits'][1]['title'] == 'Dumbo'
234234

235235
def test_custom_search_params_with_sort_int(index_with_documents):
236236
index = index_with_documents()
237237
update = index.update_sortable_attributes(['release_date'])
238238
index.wait_for_pending_update(update['updateId'])
239239
response = index.search(
240-
'world',
240+
'dark',
241241
{
242242
'sort': ['release_date:asc']
243243
}
244244
)
245245
assert isinstance(response, dict)
246-
assert len(response['hits']) == 12
246+
assert len(response['hits']) == 2
247247
assert 'facetsDistribution' not in response
248248
assert 'exhaustiveFacetsCount' not in response
249-
assert response['hits'][0]['title'] == 'Avengers: Infinity War'
250-
assert response['hits'][1]['title'] == 'Redcon-1'
249+
assert response['hits'][0]['title'] == 'After'
250+
assert response['hits'][1]['title'] == 'Dumbo'
251251

252252
def test_custom_search_params_with_multiple_sort(index_with_documents):
253253
index = index_with_documents()
254254
update = index.update_sortable_attributes(['title', 'release_date'])
255255
index.wait_for_pending_update(update['updateId'])
256256
response = index.search(
257-
'world',
257+
'dark',
258258
{
259259
'sort': ['title:asc', 'release_date:asc']
260260
}
261261
)
262262
assert isinstance(response, dict)
263-
assert len(response['hits']) == 12
263+
assert len(response['hits']) == 2
264264
assert 'facetsDistribution' not in response
265265
assert 'exhaustiveFacetsCount' not in response
266-
assert response['hits'][0]['title'] == 'Alita: Battle Angel'
267-
assert response['hits'][1]['title'] == 'Aquaman'
266+
assert response['hits'][0]['title'] == 'After'
267+
assert response['hits'][1]['title'] == 'Dumbo'
268268

269269
def test_phrase_search(index_with_documents):
270270
response = index_with_documents().search('coco "dumbo"')

0 commit comments

Comments
 (0)