Commit e7967f31 by Tim Babych Committed by Oleg Marshev

refresh to the rescue

parent cbf25263
...@@ -73,6 +73,7 @@ class BaseAnnotationViewTests(APITestCase): ...@@ -73,6 +73,7 @@ class BaseAnnotationViewTests(APITestCase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
es.indices.create(index=settings.ES_INDEXES['default'], ignore=400) es.indices.create(index=settings.ES_INDEXES['default'], ignore=400)
es.indices.refresh()
@classmethod @classmethod
def tearDownClass(cls): def tearDownClass(cls):
...@@ -80,6 +81,7 @@ class BaseAnnotationViewTests(APITestCase): ...@@ -80,6 +81,7 @@ class BaseAnnotationViewTests(APITestCase):
* deletes the test index * deletes the test index
""" """
es.indices.delete(index=settings.ES_INDEXES['default']) es.indices.delete(index=settings.ES_INDEXES['default'])
es.indices.refresh()
def _create_annotation(self, refresh=True, **kwargs): def _create_annotation(self, refresh=True, **kwargs):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment