Skip to content

Commit c2658a9

Browse files
authored
Update tests for MeiliSearch v0.15.0 (#155)
1 parent 708b04b commit c2658a9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

meilisearch/tests/index/test_index_search_meilisearch.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ def setup_class(self):
2323
def teardown_class(self):
2424
self.index.delete()
2525

26-
def test_basic_search_empty_query(self):
27-
"""Tests search with an empty query"""
28-
response = self.index.search('')
29-
assert len(response['hits']) == 0
30-
3126
def test_basic_search(self):
3227
"""Tests search with an simple query"""
3328
response = self.index.search('How to Train Your Dragon')
@@ -45,7 +40,7 @@ def test_basic_search_with_empty_query(self):
4540
"""Tests search with empty query and empty params"""
4641
response = self.index.search('')
4742
assert isinstance(response, object)
48-
assert len(response['hits']) == 0
43+
assert len(response['hits']) == 20
4944
assert response['query'] == ''
5045

5146
def test_basic_search_with_placeholder(self):
@@ -76,7 +71,7 @@ def test_custom_search_with_empty_query(self):
7671
}
7772
)
7873
assert isinstance(response, object)
79-
assert len(response['hits']) == 0
74+
assert len(response['hits']) == 20
8075
assert response['query'] == ''
8176

8277
def test_custom_search_with_placeholder(self):

0 commit comments

Comments
 (0)