Remove expected failures that fail because the method they're overriding doesn't exist

pull/11157/head
Matt Westcott 2023-10-27 19:00:06 +01:00
rodzic e1c8ab4ec0
commit 911be518b4
2 zmienionych plików z 0 dodań i 17 usunięć

Wyświetl plik

@ -1,4 +1,3 @@
import unittest
from datetime import date
from io import StringIO
@ -207,14 +206,3 @@ class ElasticsearchCommonSearchBackendTests(BackendTests):
in_jan = models.Book.objects.filter(publication_date__month=1)
with self.assertRaises(FilterError):
self.backend.search(MATCH_ALL, in_jan)
# Elasticsearch always does prefix matching on `partial_match` fields,
# even when we dont use `Prefix`.
@unittest.expectedFailure
def test_incomplete_term(self):
super().test_incomplete_term()
# Elasticsearch does not accept prefix for multiple words
@unittest.expectedFailure
def test_prefix_multiple_words(self):
super().test_prefix_multiple_words()

Wyświetl plik

@ -51,11 +51,6 @@ class TestDBBackend(BackendTests, TestCase):
def test_search_callable_field(self):
super().test_search_callable_field()
# Database backend always uses `icontains`, so always autocomplete
@unittest.expectedFailure
def test_incomplete_term(self):
super().test_incomplete_term()
# Database backend always uses `icontains`, so always autocomplete
@unittest.expectedFailure
def test_incomplete_plain_text(self):