Commit acd3f964 authored by Frank Bryden's avatar Frank Bryden
Browse files

Removed some extraneous print statements

parent 7b2730f6
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -51,7 +51,6 @@ class ExcelWriter:
                return cell.row
                return cell.row
            if verbose:
            if verbose:
                print(cell, cell.value)
                print(cell, cell.value)
        print("Early return with val {}".format(cell.row+1))
        return cell.row + 1
        return cell.row + 1


    def write_test_entry(self, test_entry):
    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
        # Use above value to determine if last row needs to be computed and used
        location = (existing_entry_row if existing_entry_row != -1 else
        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))
        print("Pie chart with name {}, data {} and location {}".format(name, data, location))


@@ -150,10 +149,8 @@ class ExcelWriter:
        pie.set_categories(labels)
        pie.set_categories(labels)
        pie.title = "PASS/FAIL Distribution for {}".format(name)
        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_location = int(location/3)*15 + 1
        chart_work_sheet.add_chart(pie, "E{}".format(chart_location))
        chart_work_sheet.add_chart(pie, "E{}".format(chart_location))
        print("Wrote chart to E{}".format(chart_location))


    def get_pass_fail_counts(self):
    def get_pass_fail_counts(self):
        """
        """
@@ -199,7 +196,6 @@ class ExcelWriter:
            data.setdefault(row[4].value, {}).setdefault(row[5].value,
            data.setdefault(row[4].value, {}).setdefault(row[5].value,
                                                         [self.get_suite_id_from_test_id(test_id),
                                                         [self.get_suite_id_from_test_id(test_id),
                                                          0, 0])[tuple_index] += 1
                                                          0, 0])[tuple_index] += 1
        print(data)
        return data
        return data


    @staticmethod
    @staticmethod