forked from openlp/openlp
Fix up tests
This commit is contained in:
parent
1712464e8c
commit
091cb079e7
@ -56,7 +56,7 @@ class TestWebkitPlayer(TestCase):
|
||||
"""
|
||||
# GIVEN: A WebkitPlayer instance and a mocked QWebPage
|
||||
mocked_qwebpage = MagicMock()
|
||||
mocked_qwebpage.mainFrame().evaluateJavaScript.return_value = '[object HTMLUnknownElement]'
|
||||
mocked_qwebpage.mainFrame().evaluateJavaScript.return_value = '[object HTMLVideoElement]'
|
||||
with patch('openlp.core.ui.media.webkitplayer.QtWebKit.QWebPage', **{'return_value': mocked_qwebpage}):
|
||||
webkit_player = WebkitPlayer(None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user