0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 13:10:14 +01:00

Add test for ordering Page search by title

This commit is contained in:
Matt Westcott 2017-11-14 16:23:32 +00:00 committed by Karl Hobley
parent 2e44dc3c8e
commit fd2753667b

View File

@ -34,6 +34,9 @@ class PageSearchTests(object):
if index:
index.refresh()
def test_order_by_title(self):
list(Page.objects.order_by('title').search('blah', order_by_relevance=False, backend=self.backend_name))
def test_search_specific_queryset(self):
list(Page.objects.specific().search('bread', backend=self.backend_name))