diff --git a/tests/functional/openlp_core_ui/test_thememanager.py b/tests/functional/openlp_core_ui/test_thememanager.py index b0196d048..6703474b7 100644 --- a/tests/functional/openlp_core_ui/test_thememanager.py +++ b/tests/functional/openlp_core_ui/test_thememanager.py @@ -176,7 +176,7 @@ class TestThemeManager(TestCase): self.assertTrue(result) mocked_qmessagebox_question.assert_called_once_with( theme_manager, 'Theme Already Exists', 'Theme Theme Name already exists. Do you want to replace it?', - ANY, ANY) + defaultButton=ANY) def test_over_write_message_box_no(self): """ @@ -196,7 +196,7 @@ class TestThemeManager(TestCase): self.assertFalse(result) mocked_qmessagebox_question.assert_called_once_with( theme_manager, 'Theme Already Exists', 'Theme Theme Name already exists. Do you want to replace it?', - ANY, ANY) + defaultButton=ANY) def test_unzip_theme(self): """ diff --git a/tests/functional/openlp_plugins/songs/test_songselect.py b/tests/functional/openlp_plugins/songs/test_songselect.py index b367b7c41..8583e0a17 100644 --- a/tests/functional/openlp_plugins/songs/test_songselect.py +++ b/tests/functional/openlp_plugins/songs/test_songselect.py @@ -612,8 +612,7 @@ class TestSongSelectForm(TestCase, TestMixin): mocked_song_select_importer.save_song.assert_called_with(None) mocked_question.assert_called_with(ssform, 'Song Imported', 'Your song has been imported, would you like to import more songs?', - QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No, - QtWidgets.QMessageBox.Yes) + defaultButton=QtWidgets.QMessageBox.Yes) mocked_on_back_button_clicked.assert_called_with() self.assertIsNone(ssform.song) @@ -639,8 +638,7 @@ class TestSongSelectForm(TestCase, TestMixin): mocked_song_select_importer.save_song.assert_called_with(None) mocked_question.assert_called_with(ssform, 'Song Imported', 'Your song has been imported, would you like to import more songs?', - QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No, - QtWidgets.QMessageBox.Yes) + defaultButton=QtWidgets.QMessageBox.Yes) mocked_done.assert_called_with(QtWidgets.QDialog.Accepted) self.assertIsNone(ssform.song)