Fix up tests

This commit is contained in:
Phill Ridout 2015-01-26 20:43:53 +00:00
parent 1712464e8c
commit 091cb079e7

View File

@ -56,7 +56,7 @@ class TestWebkitPlayer(TestCase):
""" """
# GIVEN: A WebkitPlayer instance and a mocked QWebPage # GIVEN: A WebkitPlayer instance and a mocked QWebPage
mocked_qwebpage = MagicMock() 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}): with patch('openlp.core.ui.media.webkitplayer.QtWebKit.QWebPage', **{'return_value': mocked_qwebpage}):
webkit_player = WebkitPlayer(None) webkit_player = WebkitPlayer(None)