@@ -23,11 +23,6 @@ def setup_class(self):
23
23
def teardown_class (self ):
24
24
self .index .delete ()
25
25
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
-
31
26
def test_basic_search (self ):
32
27
"""Tests search with an simple query"""
33
28
response = self .index .search ('How to Train Your Dragon' )
@@ -45,7 +40,7 @@ def test_basic_search_with_empty_query(self):
45
40
"""Tests search with empty query and empty params"""
46
41
response = self .index .search ('' )
47
42
assert isinstance (response , object )
48
- assert len (response ['hits' ]) == 0
43
+ assert len (response ['hits' ]) == 20
49
44
assert response ['query' ] == ''
50
45
51
46
def test_basic_search_with_placeholder (self ):
@@ -76,7 +71,7 @@ def test_custom_search_with_empty_query(self):
76
71
}
77
72
)
78
73
assert isinstance (response , object )
79
- assert len (response ['hits' ]) == 0
74
+ assert len (response ['hits' ]) == 20
80
75
assert response ['query' ] == ''
81
76
82
77
def test_custom_search_with_placeholder (self ):
0 commit comments