summaryrefslogtreecommitdiff
path: root/tests/unit/config/test_configcommands.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/config/test_configcommands.py')
-rw-r--r--tests/unit/config/test_configcommands.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py
index e80ab99ee..729db7de1 100644
--- a/tests/unit/config/test_configcommands.py
+++ b/tests/unit/config/test_configcommands.py
@@ -23,7 +23,7 @@ import functools
import unittest.mock
import pytest
-from qutebrowser.qt.core import QUrl
+from qutebrowser.qt import core
from qutebrowser.config import configcommands
from qutebrowser.api import cmdutils
@@ -59,7 +59,7 @@ class TestSet:
Should open qute://settings."""
commands.set(win_id=0)
- assert tabbed_browser_stubs[0].loaded_url == QUrl('qute://settings')
+ assert tabbed_browser_stubs[0].loaded_url == core.QUrl('qute://settings')
@pytest.mark.parametrize('option', ['url.auto_search?', 'url.auto_search'])
def test_get(self, config_stub, commands, message_mock, option):
@@ -222,7 +222,7 @@ def test_diff(commands, tabbed_browser_stubs, include_hidden, url):
Should open qute://configdiff.
"""
commands.config_diff(win_id=0, include_hidden=include_hidden)
- assert tabbed_browser_stubs[0].loaded_url == QUrl(url)
+ assert tabbed_browser_stubs[0].loaded_url == core.QUrl(url)
class TestCycle:
@@ -473,7 +473,7 @@ class TestUnsetAndClear:
def test_unset_pattern(self, commands, config_stub, set_global):
name = 'content.javascript.enabled'
pattern = urlmatch.UrlPattern('*://example.com')
- url = QUrl('https://example.com')
+ url = core.QUrl('https://example.com')
if set_global:
config_stub.set_obj(name, False)
@@ -731,8 +731,8 @@ class TestBind:
return {'normal': {}}
@pytest.mark.parametrize("mode, url", [
- ("normal", QUrl("qute://bindings")),
- ("passthrough", QUrl("qute://bindings#passthrough")),
+ ("normal", core.QUrl("qute://bindings")),
+ ("passthrough", core.QUrl("qute://bindings#passthrough")),
])
def test_bind_no_args(self, commands, config_stub, no_bindings,
tabbed_browser_stubs, mode, url):