forked from openlp/openlp
test fixes
This commit is contained in:
parent
a4ffbce6c3
commit
b2f5f2e9e2
@ -176,7 +176,7 @@ class TestThemeManager(TestCase):
|
|||||||
self.assertTrue(result)
|
self.assertTrue(result)
|
||||||
mocked_qmessagebox_question.assert_called_once_with(
|
mocked_qmessagebox_question.assert_called_once_with(
|
||||||
theme_manager, 'Theme Already Exists', 'Theme Theme Name already exists. Do you want to replace it?',
|
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):
|
def test_over_write_message_box_no(self):
|
||||||
"""
|
"""
|
||||||
@ -196,7 +196,7 @@ class TestThemeManager(TestCase):
|
|||||||
self.assertFalse(result)
|
self.assertFalse(result)
|
||||||
mocked_qmessagebox_question.assert_called_once_with(
|
mocked_qmessagebox_question.assert_called_once_with(
|
||||||
theme_manager, 'Theme Already Exists', 'Theme Theme Name already exists. Do you want to replace it?',
|
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):
|
def test_unzip_theme(self):
|
||||||
"""
|
"""
|
||||||
|
@ -612,8 +612,7 @@ class TestSongSelectForm(TestCase, TestMixin):
|
|||||||
mocked_song_select_importer.save_song.assert_called_with(None)
|
mocked_song_select_importer.save_song.assert_called_with(None)
|
||||||
mocked_question.assert_called_with(ssform, 'Song Imported',
|
mocked_question.assert_called_with(ssform, 'Song Imported',
|
||||||
'Your song has been imported, would you like to import more songs?',
|
'Your song has been imported, would you like to import more songs?',
|
||||||
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
|
defaultButton=QtWidgets.QMessageBox.Yes)
|
||||||
QtWidgets.QMessageBox.Yes)
|
|
||||||
mocked_on_back_button_clicked.assert_called_with()
|
mocked_on_back_button_clicked.assert_called_with()
|
||||||
self.assertIsNone(ssform.song)
|
self.assertIsNone(ssform.song)
|
||||||
|
|
||||||
@ -639,8 +638,7 @@ class TestSongSelectForm(TestCase, TestMixin):
|
|||||||
mocked_song_select_importer.save_song.assert_called_with(None)
|
mocked_song_select_importer.save_song.assert_called_with(None)
|
||||||
mocked_question.assert_called_with(ssform, 'Song Imported',
|
mocked_question.assert_called_with(ssform, 'Song Imported',
|
||||||
'Your song has been imported, would you like to import more songs?',
|
'Your song has been imported, would you like to import more songs?',
|
||||||
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
|
defaultButton=QtWidgets.QMessageBox.Yes)
|
||||||
QtWidgets.QMessageBox.Yes)
|
|
||||||
mocked_done.assert_called_with(QtWidgets.QDialog.Accepted)
|
mocked_done.assert_called_with(QtWidgets.QDialog.Accepted)
|
||||||
self.assertIsNone(ssform.song)
|
self.assertIsNone(ssform.song)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user