Don't require QtWebEngine for history tests

This commit is contained in:
Florian Bruhin 2016-09-05 22:25:20 +02:00
parent 2658b7c4e7
commit cf44019475

View File

@ -392,12 +392,8 @@ def test_history_interface(qtbot, webview, hist_interface):
@pytest.mark.parametrize('backend', ['webengine', 'webkit'])
def test_init(backend, qapp, tmpdir, monkeypatch, fake_save_manager,
fake_args):
if backend == 'webengine':
pytest.importorskip('PyQt5.QtWebEngineWidgets')
elif backend == 'webkit':
if backend == 'webkit':
pytest.importorskip('PyQt5.QtWebKitWidgets')
else:
assert False
fake_args.backend = backend
monkeypatch.setattr(history.standarddir, 'data', lambda: str(tmpdir))