Skip to content

Commit

Permalink
Docs tests now check 'query_string' instead of 'search_query'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaedroho committed Feb 18, 2014
1 parent fd91a0b commit fa8d004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail/wagtaildocs/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def test_status_code(self):
def test_search(self):
response = self.get({'q': "Hello"})
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['search_query'], "Hello")
self.assertEqual(response.context['query_string'], "Hello")

def test_pagination(self):
pages = ['0', '1', '-1', '9999', 'Not a page']
Expand Down

0 comments on commit fa8d004

Please sign in to comment.