Replaces a remaining None with MATCH_ALL.

This commit is contained in:
Bertrand Bordage 2017-11-23 22:12:33 +01:00
parent 04e2deb309
commit d537737166

View file

@ -6,6 +6,7 @@ from django.test import TestCase
from wagtail.tests.testapp.models import EventPage, SimplePage, SingleEventPage
from wagtail.wagtailcore.models import Page, PageViewRestriction, Site
from wagtail.wagtailcore.signals import page_unpublished
from wagtail.wagtailsearch.query import MATCH_ALL
class TestPageQuerySet(TestCase):
@ -593,7 +594,8 @@ class TestSpecificQuery(TestCase):
# 1276 - The database search backend didn't return results with the
# specific type when searching a specific queryset.
pages = list(Page.objects.specific().live().in_menu().search(None, backend='wagtail.wagtailsearch.backends.db'))
pages = list(Page.objects.specific().live().in_menu().search(
MATCH_ALL, backend='wagtail.wagtailsearch.backends.db'))
# Check that each page is in the queryset with the correct type.
# We don't care about order here