Skip to content

Update tests for MeiliSearch v0.15 #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions meilisearch/tests/index/test_index_search_meilisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ def setup_class(self):
def teardown_class(self):
self.index.delete()

def test_basic_search_empty_query(self):
"""Tests search with an empty query"""
response = self.index.search('')
assert len(response['hits']) == 0

def test_basic_search(self):
"""Tests search with an simple query"""
response = self.index.search('How to Train Your Dragon')
Expand All @@ -45,7 +40,7 @@ def test_basic_search_with_empty_query(self):
"""Tests search with empty query and empty params"""
response = self.index.search('')
assert isinstance(response, object)
assert len(response['hits']) == 0
assert len(response['hits']) == 20
assert response['query'] == ''

def test_basic_search_with_placeholder(self):
Expand Down Expand Up @@ -76,7 +71,7 @@ def test_custom_search_with_empty_query(self):
}
)
assert isinstance(response, object)
assert len(response['hits']) == 0
assert len(response['hits']) == 20
assert response['query'] == ''

def test_custom_search_with_placeholder(self):
Expand Down