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())
def cleantemp(self): temp_dir = os.path.join(settings.PROJECT_DIR, "temp") if os.path.exists(temp_dir): os.rmdir_p(temp_dir)
def cleanup_results(self): results_dir = os.path.join(settings.PROJECT_DIR, "results") if os.path.exists(results_dir): os.rmdir_p(results_dir)
def tearDown(self): project1 = self.config.result_dir() if os.path.exists(project1) : os.rmdir_p(project1) os.environ["CONFIGS_DIR"] = ConfigTests.original
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())