From b86ec4ffe9a4b4a4a8c82941d0a6366dfa93ef2e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 5 May 2015 11:28:35 -0400 Subject: [PATCH] Fixed QuestionDialog2 failure --- gramps/gui/test/user_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/test/user_test.py b/gramps/gui/test/user_test.py index bca171a17..908fa48ba 100644 --- a/gramps/gui/test/user_test.py +++ b/gramps/gui/test/user_test.py @@ -46,9 +46,9 @@ class TestUser_prompt(unittest.TestCase): def test_prompt_runs_QuestionDialog2(self): with patch('gramps.gui.user.QuestionDialog2') as MockQD: self.user.prompt(TestUser.TITLE, TestUser.MSG, - TestUser.ACCEPT, TestUser.REJECT) + TestUser.ACCEPT, TestUser.REJECT, None) MockQD.assert_called_once_with(TestUser.TITLE, TestUser.MSG, - TestUser.ACCEPT, TestUser.REJECT) + TestUser.ACCEPT, TestUser.REJECT, None) MockQD.return_value.run.assert_called_once_with() # TODO test that run's return is the one returned by prompt()...