From ef8f8f0e44422bdc0e4d321628f7ac2f571c2a0a Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Tue, 7 Jun 2016 21:32:30 -0400 Subject: [PATCH] Fix broken tests --- core/tests/base.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/tests/base.py b/core/tests/base.py index 693e655e..3b0e14a5 100644 --- a/core/tests/base.py +++ b/core/tests/base.py @@ -61,16 +61,17 @@ class DupeGuru(DupeGuruBase): def __init__(self): DupeGuruBase.__init__(self, DupeGuruView()) self.appdata = '/tmp' - self.result_table = self._create_result_table() - self.result_table.connect() + self._recreate_result_table() def _prioritization_categories(self): return prioritize.all_categories() - def _create_result_table(self): - result = ResultTable(self) - result.view = CallLogger() - return result + def _recreate_result_table(self): + if self.result_table is not None: + self.result_table.disconnect() + self.result_table = ResultTable(self) + self.result_table.view = CallLogger() + self.result_table.connect() class NamedObject: