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:
parent
2e44dc3c8e
commit
fd2753667b
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user