Fixed QuestionDialog2 failure
This commit is contained in:
parent
710f7eab3c
commit
b86ec4ffe9
@ -46,9 +46,9 @@ class TestUser_prompt(unittest.TestCase):
|
|||||||
def test_prompt_runs_QuestionDialog2(self):
|
def test_prompt_runs_QuestionDialog2(self):
|
||||||
with patch('gramps.gui.user.QuestionDialog2') as MockQD:
|
with patch('gramps.gui.user.QuestionDialog2') as MockQD:
|
||||||
self.user.prompt(TestUser.TITLE, TestUser.MSG,
|
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,
|
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()
|
MockQD.return_value.run.assert_called_once_with()
|
||||||
# TODO test that run's return is the one returned by prompt()...
|
# TODO test that run's return is the one returned by prompt()...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user