diff options
Diffstat (limited to 'tests/unit/completion/test_models.py')
-rw-r--r-- | tests/unit/completion/test_models.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py index 2c00acf68..fb44006aa 100644 --- a/tests/unit/completion/test_models.py +++ b/tests/unit/completion/test_models.py @@ -31,9 +31,9 @@ from unittest import mock import hypothesis import hypothesis.strategies as hst import pytest -from PyQt5.QtCore import QUrl, QDateTime, QProcess +from qutebrowser.qt.core import QUrl, QDateTime, QProcess try: - from PyQt5.QtWebEngineWidgets import ( + from qutebrowser.qt.webenginecore import ( QWebEngineHistory, QWebEngineHistoryItem ) except ImportError: @@ -1348,7 +1348,7 @@ def test_url_completion_benchmark(benchmark, info, @pytest.fixture def tab_with_history(fake_web_tab, tabbed_browser_stubs, info, monkeypatch): """Returns a fake tab with some fake history items.""" - pytest.importorskip('PyQt5.QtWebEngineWidgets') + pytest.importorskip('qutebrowser.qt.webenginewidgets') tab = fake_web_tab(QUrl('https://github.com'), 'GitHub', 0) current_idx = 2 monkeypatch.setattr( @@ -1490,7 +1490,7 @@ def test_process_completion(monkeypatch, stubs, info): p1.cmd = 'cmd1' p1.args = [] p1.outcome.running = False - p1.outcome.status = QProcess.NormalExit + p1.outcome.status = QProcess.ExitStatus.NormalExit p1.outcome.code = 0 p2.pid = 1002 @@ -1502,7 +1502,7 @@ def test_process_completion(monkeypatch, stubs, info): p3.cmd = 'cmd3' p3.args = [] p3.outcome.running = False - p3.outcome.status = QProcess.NormalExit + p3.outcome.status = QProcess.ExitStatus.NormalExit p3.outcome.code = 1 monkeypatch.setattr(guiprocess, 'all_processes', { |