@pytest.fixture
def webengineview():
 QtWebEngineWidgets = pytest.importorskip('PyQt5.QtWebEngineWidgets')
 return QtWebEngineWidgets.QWebEngineView()

@ pytest . fixture def webengineview ( ) : QtWebEngineWidgets = pytest . importorskip ( 'PyQt5.QtWebEngineWidgets' ) return QtWebEngineWidgets . QWebEngineView ( )
get a qwebengineview if qtwebengine is available .