コード例 #1
0
ファイル: tar_tests.py プロジェクト: whimet/ianalyse
 def setUp(self):
     self.utils = TestUtils()
     self.configs = Groups().default()
     self.tar_file = os.path.join(self.configs.results_dir(), 'all.tar')
     if os.path.exists(self.tar_file):
         os.remove(self.tar_file)
     os.rmdir_p(self.configs.results_dir())
     os.rmdir_p(self.utils.temp_dir())
コード例 #2
0
ファイル: testutil.py プロジェクト: whimet/ianalyse
 def cleantemp(self):
     temp_dir = os.path.join(settings.PROJECT_DIR, "temp")
     if os.path.exists(temp_dir):
         os.rmdir_p(temp_dir)
コード例 #3
0
ファイル: testutil.py プロジェクト: whimet/ianalyse
 def cleanup_results(self):
     results_dir = os.path.join(settings.PROJECT_DIR, "results")
     if os.path.exists(results_dir):
         os.rmdir_p(results_dir)
コード例 #4
0
ファイル: config_tests.py プロジェクト: whimet/ianalyse
 def tearDown(self):
      project1 = self.config.result_dir()
      if os.path.exists(project1) :
         os.rmdir_p(project1)
      os.environ["CONFIGS_DIR"] = ConfigTests.original
コード例 #5
0
ファイル: tar_tests.py プロジェクト: whimet/ianalyse
 def tearDown(self):
     if os.path.exists(self.tar_file):
         os.remove(self.tar_file)
     os.rmdir_p(self.configs.results_dir())
     os.rmdir_p(self.utils.temp_dir())