From fd2753667b185e66d68fe9601dce6036a768419d Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Tue, 14 Nov 2017 16:23:32 +0000 Subject: [PATCH] Add test for ordering Page search by title --- wagtail/wagtailsearch/tests/test_page_search.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wagtail/wagtailsearch/tests/test_page_search.py b/wagtail/wagtailsearch/tests/test_page_search.py index 6473463543..cb381b7e5b 100644 --- a/wagtail/wagtailsearch/tests/test_page_search.py +++ b/wagtail/wagtailsearch/tests/test_page_search.py @@ -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))