def test_report(self): if os.path.exists(self.dst_file_path): os.remove(self.dst_file_path) report = SpreadsheetReport(self.src_file_path) report.build(self.dst_file_path) if not os.path.exists(self.dst_file_path): raise Exception("File not create")
def test_report(self): for src, dst in self.conf_files: if os.path.exists(dst): os.remove(dst) report = SpreadsheetReport(src) report.build(dst) if not os.path.exists(dst): raise Exception('File not create')