コード例 #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()