Ejemplo n.º 1
0
 def setup_test_environment(self):
     super().setup_test_environment()
     try:
         es.client.indices.delete(settings.ES_INDEX)
     except NotFoundError:
         pass
     call_command('create_index')
     es.wait_for_yellow()
Ejemplo n.º 2
0
 def setup_test_environment(self):
     super(ESTestSuiteRunner, self).setup_test_environment()
     call_command('create_index')
     es.wait_for_yellow()