summaryrefslogtreecommitdiff
path: root/tests/end2end/test_invocations.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/test_invocations.py')
-rw-r--r--tests/end2end/test_invocations.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py
index 0d49ff109..43cd6995f 100644
--- a/tests/end2end/test_invocations.py
+++ b/tests/end2end/test_invocations.py
@@ -29,10 +29,10 @@ import json
import platform
import pytest
-from PyQt5.QtCore import QProcess, QPoint
from helpers import testutils
from qutebrowser.utils import qtutils, utils
+from qutebrowser.qt import QtCore
ascii_locale = pytest.mark.skipif(sys.hexversion >= 0x03070000,
@@ -261,8 +261,8 @@ def test_version(request):
args = ['-m', 'qutebrowser', '--version'] + _base_args(request.config)
# can't use quteproc_new here because it's confused by
# early process termination
- proc = QProcess()
- proc.setProcessChannelMode(QProcess.SeparateChannels)
+ proc = QtCore.QProcess()
+ proc.setProcessChannelMode(QtCore.QProcess.SeparateChannels)
proc.start(sys.executable, args)
ok = proc.waitForStarted(2000)
@@ -275,7 +275,7 @@ def test_version(request):
print(stderr)
assert ok
- assert proc.exitStatus() == QProcess.NormalExit
+ assert proc.exitStatus() == QtCore.QProcess.NormalExit
match = re.search(r'^qutebrowser\s+v\d+(\.\d+)', stdout, re.MULTILINE)
assert match is not None
@@ -543,7 +543,7 @@ def test_preferred_colorscheme_with_dark_mode(
else testutils.Color(34, 34, 34)) # dark website color
xfail = False
- pos = QPoint(0, 0)
+ pos = QtCore.QPoint(0, 0)
img = quteproc_new.get_screenshot(probe_pos=pos, probe_color=expected_color)
color = testutils.Color(img.pixelColor(pos))
@@ -718,7 +718,7 @@ def test_dark_mode(webengine_versions, quteproc_new, request,
# Position chosen by fair dice roll.
# https://xkcd.com/221/
quteproc_new.get_screenshot(
- probe_pos=QPoint(4, 4),
+ probe_pos=QtCore.QPoint(4, 4),
probe_color=expected,
)
@@ -741,13 +741,13 @@ def test_dark_mode_mathml(quteproc_new, request, qtbot):
expected = testutils.Color(0, 0, 206) if IS_ARM else testutils.Color(0, 0, 204)
quteproc_new.get_screenshot(
- probe_pos=QPoint(105, 0),
+ probe_pos=QtCore.QPoint(105, 0),
probe_color=expected,
)
# Then get the actual formula color, probing again in case it's not displayed yet...
quteproc_new.get_screenshot(
- probe_pos=QPoint(4, 4),
+ probe_pos=QtCore.QPoint(4, 4),
probe_color=testutils.Color(255, 255, 255),
)