diff --git a/readthedocs/search/faceted_search.py b/readthedocs/search/faceted_search.py index 55a38ab0b03..77d9f13cc76 100644 --- a/readthedocs/search/faceted_search.py +++ b/readthedocs/search/faceted_search.py @@ -32,8 +32,7 @@ class FileSearch(RTDFacetedSearch): } def query(self, search, query): - """Add query part to ``search``.""" - + """Add query part to ``search``""" if query: all_queries = [] diff --git a/readthedocs/search/tests/test_faceted_search.py b/readthedocs/search/tests/test_faceted_search.py index 7156f91abbe..52ff2e81ed8 100644 --- a/readthedocs/search/tests/test_faceted_search.py +++ b/readthedocs/search/tests/test_faceted_search.py @@ -12,7 +12,6 @@ def test_search_exact_match(self, client, project, case): Making a query with quoted text like ``"foo bar"`` should match exactly ``foo bar`` or ``Foo Bar`` etc """ - # `Github` word is present both in `kuma` and `pipeline` files # But the phrase Github can is available only in kuma docs. # So search with this phrase to check @@ -35,7 +34,6 @@ def test_search_combined_result(self, client, project): - Where both `Foo Bar` is present - Where `Foo` or `Bar` is present """ - query = 'Official Support' page_search = PageDocument.faceted_search(query=query) results = page_search.execute()