forked from openlp/openlp
fix tests
This commit is contained in:
parent
89cbe8bc7d
commit
f21d3cfa83
@ -171,4 +171,4 @@ class TestImageManager(TestCase, TestMixin):
|
|||||||
self.lock.release()
|
self.lock.release()
|
||||||
# The sleep time is adjusted in the test case.
|
# The sleep time is adjusted in the test case.
|
||||||
time.sleep(self.sleep_time)
|
time.sleep(self.sleep_time)
|
||||||
return ''
|
return ''
|
||||||
|
@ -125,4 +125,4 @@ class TestMedia(TestCase, TestMixin):
|
|||||||
|
|
||||||
# THEN: the used_players should be an empty list, and the overridden player should be an empty string
|
# THEN: the used_players should be an empty list, and the overridden player should be an empty string
|
||||||
self.assertEqual(['vlc', 'webkit', 'phonon'], used_players, 'Used players should be correct')
|
self.assertEqual(['vlc', 'webkit', 'phonon'], used_players, 'Used players should be correct')
|
||||||
self.assertEqual('vlc,webkit,phonon', overridden_player, 'Overridden player should be a string of players')
|
self.assertEqual('vlc,webkit,phonon', overridden_player, 'Overridden player should be a string of players')
|
||||||
|
@ -62,4 +62,4 @@ class TestHistoryComboBox(TestCase, TestMixin):
|
|||||||
self.combo.addItem('test2')
|
self.combo.addItem('test2')
|
||||||
|
|
||||||
# THEN: The list of items should contain both strings.
|
# THEN: The list of items should contain both strings.
|
||||||
self.assertEqual(self.combo.getItems(), ['test1', 'test2'])
|
self.assertEqual(self.combo.getItems(), ['test1', 'test2'])
|
||||||
|
@ -75,4 +75,4 @@ class TestShortcutform(TestCase, TestMixin):
|
|||||||
# THEN: The button should be changed.
|
# THEN: The button should be changed.
|
||||||
self.assertEqual(button.text(), text, "The text should match.")
|
self.assertEqual(button.text(), text, "The text should match.")
|
||||||
mocked_check_method.assert_called_once_with(True)
|
mocked_check_method.assert_called_once_with(True)
|
||||||
self.assertEqual(button.isEnabled(), enabled, "The button should be disabled.")
|
self.assertEqual(button.isEnabled(), enabled, "The button should be disabled.")
|
||||||
|
Loading…
Reference in New Issue
Block a user