forked from openlp/openlp
test fixing
This commit is contained in:
parent
71c1051f88
commit
65739d1b95
@ -368,7 +368,7 @@ class TestVLCPlayer(TestCase, TestMixin):
|
|||||||
|
|
||||||
# WHEN: A video is loaded into VLC
|
# WHEN: A video is loaded into VLC
|
||||||
with patch.object(vlc_player, 'volume') as mocked_volume:
|
with patch.object(vlc_player, 'volume') as mocked_volume:
|
||||||
result = vlc_player.load(mocked_display, MagicMock())
|
result = vlc_player.load(mocked_display, media_path)
|
||||||
|
|
||||||
# THEN: The video should be loaded
|
# THEN: The video should be loaded
|
||||||
mocked_normcase.assert_called_with(media_path)
|
mocked_normcase.assert_called_with(media_path)
|
||||||
@ -413,7 +413,7 @@ class TestVLCPlayer(TestCase, TestMixin):
|
|||||||
# WHEN: An audio CD is loaded into VLC
|
# WHEN: An audio CD is loaded into VLC
|
||||||
with patch.object(vlc_player, 'volume') as mocked_volume, \
|
with patch.object(vlc_player, 'volume') as mocked_volume, \
|
||||||
patch.object(vlc_player, 'media_state_wait'):
|
patch.object(vlc_player, 'media_state_wait'):
|
||||||
result = vlc_player.load(mocked_display, MagicMock())
|
result = vlc_player.load(mocked_display, media_path)
|
||||||
|
|
||||||
# THEN: The video should be loaded
|
# THEN: The video should be loaded
|
||||||
mocked_normcase.assert_called_with(media_path)
|
mocked_normcase.assert_called_with(media_path)
|
||||||
@ -458,7 +458,7 @@ class TestVLCPlayer(TestCase, TestMixin):
|
|||||||
# WHEN: An audio CD is loaded into VLC
|
# WHEN: An audio CD is loaded into VLC
|
||||||
with patch.object(vlc_player, 'volume') as mocked_volume, \
|
with patch.object(vlc_player, 'volume') as mocked_volume, \
|
||||||
patch.object(vlc_player, 'media_state_wait'):
|
patch.object(vlc_player, 'media_state_wait'):
|
||||||
result = vlc_player.load(mocked_display, MagicMock())
|
result = vlc_player.load(mocked_display, media_path)
|
||||||
|
|
||||||
# THEN: The video should be loaded
|
# THEN: The video should be loaded
|
||||||
mocked_normcase.assert_called_with(media_path)
|
mocked_normcase.assert_called_with(media_path)
|
||||||
@ -502,7 +502,7 @@ class TestVLCPlayer(TestCase, TestMixin):
|
|||||||
|
|
||||||
# WHEN: An audio CD is loaded into VLC
|
# WHEN: An audio CD is loaded into VLC
|
||||||
with patch.object(vlc_player, 'volume'), patch.object(vlc_player, 'media_state_wait'):
|
with patch.object(vlc_player, 'volume'), patch.object(vlc_player, 'media_state_wait'):
|
||||||
result = vlc_player.load(mocked_display, MagicMock())
|
result = vlc_player.load(mocked_display, media_path)
|
||||||
|
|
||||||
# THEN: The video should be loaded
|
# THEN: The video should be loaded
|
||||||
mocked_normcase.assert_called_with(media_path)
|
mocked_normcase.assert_called_with(media_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user