Skip to content

Commit

Permalink
fixing linter
Browse files Browse the repository at this point in the history
  • Loading branch information
safwanrahman committed Jul 16, 2018
1 parent a567551 commit 4ac0993
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions readthedocs/search/faceted_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down
2 changes: 0 additions & 2 deletions readthedocs/search/tests/test_faceted_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 4ac0993

Please sign in to comment.