From 601cb6c377083d8f7559bb8a064ce62a52c9253a Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Fri, 11 May 2018 19:26:00 +0200 Subject: [PATCH] Fixes elasticsearch tests. --- wagtail/search/tests/elasticsearch_common_tests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wagtail/search/tests/elasticsearch_common_tests.py b/wagtail/search/tests/elasticsearch_common_tests.py index 6a71c03fec..944dd8b332 100644 --- a/wagtail/search/tests/elasticsearch_common_tests.py +++ b/wagtail/search/tests/elasticsearch_common_tests.py @@ -183,3 +183,9 @@ class ElasticsearchCommonSearchBackendTests(BackendTests): @unittest.expectedFailure def test_prefix_multiple_words(self): super().test_prefix_multiple_words() + + # Elasticsearch always does prefix matching on `partial_match` fields, + # even when we don’t use `Prefix`. + @unittest.expectedFailure + def test_incomplete_plain_text(self): + super().test_incomplete_plain_text()