From 9d745541c8fadc99c3dfac9d349bb3de3a0db08a Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Thu, 19 Oct 2017 17:08:39 +0100 Subject: [PATCH] Recategorise an expectedFailure test This test won't work even if the index API was implemented for the DB backend --- wagtail/search/tests/test_db_backend.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wagtail/search/tests/test_db_backend.py b/wagtail/search/tests/test_db_backend.py index 40953d9e77..fba3332d7d 100644 --- a/wagtail/search/tests/test_db_backend.py +++ b/wagtail/search/tests/test_db_backend.py @@ -18,6 +18,11 @@ class TestDBBackend(BackendTests, TestCase): def test_search_boosting_on_related_fields(self): super().test_search_boosting_on_related_fields() + # Doesn't support ranking + @unittest.expectedFailure + def test_same_rank_pages(self): + super(TestDBBackend, self).test_same_rank_pages() + # Doesn't support searching specific fields @unittest.expectedFailure def test_search_child_class_field_from_parent(self): @@ -32,8 +37,3 @@ class TestDBBackend(BackendTests, TestCase): @unittest.expectedFailure def test_search_callable_field(self): super().test_search_callable_field() - - # Doesn't support the index API used in this test - @unittest.expectedFailure - def test_same_rank_pages(self): - super().test_same_rank_pages()