Provide helpers for running tests against elasticsearch

This commit is contained in:
Honza Král
2014-04-23 01:12:03 +02:00
parent 28f9171235
commit 71176d5595
6 changed files with 82 additions and 64 deletions
@@ -10,9 +10,10 @@ import yaml
from elasticsearch import TransportError
from elasticsearch.compat import string_types
from elasticsearch.helpers.test import _get_version
from ..test_cases import SkipTest
from . import ElasticTestCase, _get_version
from . import ElasticsearchTestCase
# some params had to be changed in python, keep track of them so we can rename
# those in the tests accordingly
@@ -33,7 +34,7 @@ IMPLEMENTED_FEATURES = ('regex', 'gtelte')
class InvalidActionType(Exception):
pass
class YamlTestCase(ElasticTestCase):
class YamlTestCase(ElasticsearchTestCase):
def setUp(self):
super(YamlTestCase, self).setUp()
if hasattr(self, '_setup_code'):