making import of QtWebEngine in corresponding tests conditional

This commit is contained in:
Jesko 2018-08-24 12:15:27 +02:00 committed by Jimmy
parent f22fb30ef3
commit 02f485cbc8

View File

@ -23,8 +23,10 @@ from unittest import mock
import logging
from PyQt5.QtCore import QObject
from PyQt5.QtWebEngineWidgets import QWebEnginePage, QWebEngineScriptCollection
import pytest
QtWebEngineWidgets = pytest.importorskip("PyQt5.QtWebEngineWidgets")
QWebEnginePage = QtWebEngineWidgets.QWebEnginePage
QWebEngineScriptCollection = QtWebEngineWidgets.QWebEngineScriptCollection
from qutebrowser.browser.webengine import webenginetab
from qutebrowser.browser import greasemonkey