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)
def tearDown(self): delete_files_in_folder(self.temp_dir, filter_out=[".keepme"])
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"])
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