Fix test errors if django is not installed
If django is not installed, then we don't import get_es and then this code fails. But we don't need the get_es method on QueryTest anyhow, so this nixes it.
This commit is contained in:
Родитель
197221b06a
Коммит
4510d6af90
|
@ -121,10 +121,6 @@ class ESTest(TestCase):
|
||||||
|
|
||||||
|
|
||||||
class QueryTest(ElasticTestCase):
|
class QueryTest(ElasticTestCase):
|
||||||
@classmethod
|
|
||||||
def get_es(cls):
|
|
||||||
return get_es()
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setup_class(cls):
|
def setup_class(cls):
|
||||||
super(QueryTest, cls).setup_class()
|
super(QueryTest, cls).setup_class()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче