From 678a42263d274110916eab059f60fe5d3d415e06 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 1 Mar 2017 19:51:15 -0700 Subject: [PATCH] Fixed a test --- .../interfaces/openlp_plugins/songs/forms/test_authorsform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/interfaces/openlp_plugins/songs/forms/test_authorsform.py b/tests/interfaces/openlp_plugins/songs/forms/test_authorsform.py index 3ff5c8baa..587d38bd8 100644 --- a/tests/interfaces/openlp_plugins/songs/forms/test_authorsform.py +++ b/tests/interfaces/openlp_plugins/songs/forms/test_authorsform.py @@ -324,8 +324,8 @@ class TestAuthorsForm(TestCase, TestMixin): mocked_critical_error.assert_called_once_with( message='You have not set a display name for the author, combine the first and last names?', parent=self.form, question=True) - mocked_first_name_edit_text.assert_called_once_with() - mocked_last_name_edit_text.assert_called_once_with() + assert mocked_first_name_edit_text.call_count == 2 + assert mocked_last_name_edit_text.call_count == 2 mocked_display_edit_text.assert_called_once_with() mocked_display_edit_setText.assert_called_once_with('John Newton') mocked_accept.assert_called_once_with(self.form)