예제 #1
0
파일: runner.py 프로젝트: wzyboy/feedhq
 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()
예제 #2
0
 def setup_test_environment(self):
     super(ESTestSuiteRunner, self).setup_test_environment()
     call_command('create_index')
     es.wait_for_yellow()