예제 #1
0
 def test_delete_files_in_folder(self):
     "test helpers function to clean out tests temp directory"
     file_name = os.path.join(self.temp_dir, "test_file.txt")
     folder_name = os.path.join(self.temp_dir, "test_folder")
     os.mkdir(folder_name)
     Path(file_name).touch()
     delete_files_in_folder(self.temp_dir, filter_out=[".keepme"])
     self.assertEqual(len(os.listdir(self.temp_dir)), 1)
예제 #2
0
 def tearDown(self):
     delete_files_in_folder(self.temp_dir, filter_out=[".keepme"])
예제 #3
0
 def tearDown(self):
     LOGGER.removeHandler(self.log_handler)
     delete_files_in_folder(self.temp_dir, filter_out=[".keepme"])
     delete_files_in_folder(self.output_dir, filter_out=[".keepme"])
예제 #4
0
 def tearDown(self):
     LOGGER.removeHandler(self.log_handler)
     delete_files_in_folder(self.temp_dir, filter_out=[".keepme"])
     parse.REPAIR_XML = self.original_repair_xml_value