-
Notifications
You must be signed in to change notification settings - Fork 90
Add search tests: empty string and empty query (placeholder search) #135
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test: a custom search with ""
as q
?
@@ -54,6 +66,17 @@ def test_custom_search(self): | |||
assert '_formatted' in response['hits'][0] | |||
assert 'dragon' in response['hits'][0]['_formatted']['title'].lower() | |||
|
|||
def test_custom_search_with_placeholder(self): | |||
"""Tests search with no query [None] and custom parameter (attributesToHighlight)""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Tests search with no query [None] and custom parameter (attributesToHighlight)""" | |
"""Tests search with no query [None] and custom parameter (limit)""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahah just saw it, thanks ;)
c213602
to
a285f4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry 😇
- Just realized there is already a test with an empty query
- Can you remove the
{}
in the second paramter: this parameter is supposed to be optional, so the user will not fill it in a basic search
a285f4d
to
df0d8e0
Compare
Danke, @curquiza
|
Closes #136