diff --git a/write_excel.py b/write_excel.py index 5eca9081214f1792d978ce811e1552dd0cbd4dc2..818675644667d191fc6bde0633075d3556e44d39 100644 --- a/write_excel.py +++ b/write_excel.py @@ -51,7 +51,6 @@ class ExcelWriter: return cell.row if verbose: print(cell, cell.value) - print("Early return with val {}".format(cell.row+1)) return cell.row + 1 def write_test_entry(self, test_entry): @@ -124,7 +123,7 @@ class ExcelWriter: # Use above value to determine if last row needs to be computed and used location = (existing_entry_row if existing_entry_row != -1 else - self.get_last_row(chart_work_sheet, True) - 1) + self.get_last_row(chart_work_sheet) - 1) print("Pie chart with name {}, data {} and location {}".format(name, data, location)) @@ -150,10 +149,8 @@ class ExcelWriter: pie.set_categories(labels) pie.title = "PASS/FAIL Distribution for {}".format(name) - print("{}/3 = {}, *15 + 1 = {}".format(location, int(location/3), int(location/3)*15 +1)) chart_location = int(location/3)*15 + 1 chart_work_sheet.add_chart(pie, "E{}".format(chart_location)) - print("Wrote chart to E{}".format(chart_location)) def get_pass_fail_counts(self): """ @@ -199,7 +196,6 @@ class ExcelWriter: data.setdefault(row[4].value, {}).setdefault(row[5].value, [self.get_suite_id_from_test_id(test_id), 0, 0])[tuple_index] += 1 - print(data) return data @staticmethod