0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Allows search query API tests failure on ES5.

This commit is contained in:
Bertrand Bordage 2017-11-23 21:26:54 +01:00
parent c737f516e8
commit 04e2deb309
2 changed files with 39 additions and 38 deletions

View File

@ -1,5 +1,6 @@
from __future__ import absolute_import, unicode_literals
import unittest
from datetime import date
from io import StringIO
@ -172,3 +173,41 @@ class ElasticsearchCommonSearchBackendTests(object):
results = self.backend.search(MATCH_ALL, models.Book)[110:]
self.assertEqual(len(results), 53)
#
# Basic query classes
#
# Not implemented yet
@unittest.expectedFailure
def test_term(self):
super().test_term()
# Not implemented yet
@unittest.expectedFailure
def test_and(self):
super().test_and()
# Not implemented yet
@unittest.expectedFailure
def test_or(self):
super().test_or()
# Not implemented yet
@unittest.expectedFailure
def test_not(self):
super().test_not()
# Not implemented yet
@unittest.expectedFailure
def test_operators_combination(self):
super().test_operators_combination()
#
# Shortcut query classes
#
# Not implemented yet
@unittest.expectedFailure
def test_filter_query(self):
super().test_filter_query()

View File

@ -37,44 +37,6 @@ class TestElasticsearch2SearchBackend(BackendTests, ElasticsearchCommonSearchBac
def test_delete(self):
super(TestElasticsearch2SearchBackend, self).test_delete()
#
# Basic query classes
#
# Not implemented yet
@unittest.expectedFailure
def test_term(self):
super().test_term()
# Not implemented yet
@unittest.expectedFailure
def test_and(self):
super().test_and()
# Not implemented yet
@unittest.expectedFailure
def test_or(self):
super().test_or()
# Not implemented yet
@unittest.expectedFailure
def test_not(self):
super().test_not()
# Not implemented yet
@unittest.expectedFailure
def test_operators_combination(self):
super().test_operators_combination()
#
# Shortcut query classes
#
# Not implemented yet
@unittest.expectedFailure
def test_filter_query(self):
super().test_filter_query()
class TestElasticsearch2SearchQuery(TestCase):
def assertDictEqual(self, a, b):