Commit 212d9f6c by Oleg Marshev

Fix test.

parent caff54e6
......@@ -55,7 +55,15 @@ class BaseAnnotationViewTests(APITestCase):
@classmethod
def setUpClass(cls):
CreateIndexCommand().handle()
get_es().indices.delete(index=settings.ES_INDEXES['default'], ignore=404)
get_es().indices.create(
index=settings.ES_INDEXES['default'],
body={
'mappings': {
NoteMappingType.get_mapping_type_name(): NoteMappingType.get_mapping()
}
},
)
get_es().indices.refresh()
get_es().cluster.health(wait_for_status='yellow')
......
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