python-piped-api-client/tests/test_suggestions.py
2022-02-28 09:24:59 +01:00

17 lines
320 B
Python

from tests import CLIENT
def test_suggestions(search_query: str='Susan') -> None:
"""
Obtains search suggestions for a query.
"""
suggestions = CLIENT.get_search_suggestions(search_query)
assert len(suggestions) > 0
print(suggestions)
if __name__ == '__main__':
test_suggestions()