Resolved issue #281

This commit is contained in:
John Kirkland 2019-10-08 15:41:59 -05:00
parent bd0646b174
commit e98dcb0d51

View File

@ -53,6 +53,8 @@ class TestMediaClipSelectorForm(TestCase, TestMixin):
# Mock VLC so we don't actually use it # Mock VLC so we don't actually use it
self.vlc_patcher = patch('openlp.plugins.media.forms.mediaclipselectorform.get_vlc') self.vlc_patcher = patch('openlp.plugins.media.forms.mediaclipselectorform.get_vlc')
self.vlc_patcher.start() self.vlc_patcher.start()
self.timer_patcher = patch('openlp.plugins.media.forms.mediaclipselectorform.QtCore.QTimer')
self.timer_patcher.start()
Registry().register('application', self.app) Registry().register('application', self.app)
# Mock the media item # Mock the media item
self.mock_media_item = MagicMock() self.mock_media_item = MagicMock()
@ -71,6 +73,7 @@ class TestMediaClipSelectorForm(TestCase, TestMixin):
""" """
del self.form del self.form
self.vlc_patcher.stop() self.vlc_patcher.stop()
self.timer_patcher.stop()
del self.main_window del self.main_window
def test_basic(self): def test_basic(self):