summaryrefslogtreecommitdiff
path: root/tests/unit/utils/test_standarddir.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/utils/test_standarddir.py')
-rw-r--r--tests/unit/utils/test_standarddir.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/utils/test_standarddir.py b/tests/unit/utils/test_standarddir.py
index c7795d94a..c61648686 100644
--- a/tests/unit/utils/test_standarddir.py
+++ b/tests/unit/utils/test_standarddir.py
@@ -28,7 +28,7 @@ import textwrap
import logging
import subprocess
-from qutebrowser.qt.core import QStandardPaths
+from qutebrowser.qt import core
import pytest
from qutebrowser.utils import standarddir, utils, version
@@ -114,8 +114,8 @@ def test_fake_windows(tmpdir, monkeypatch, what):
def test_fake_haiku(tmpdir, monkeypatch):
"""Test getting data dir on HaikuOS."""
locations = {
- QStandardPaths.StandardLocation.AppDataLocation: '',
- QStandardPaths.StandardLocation.ConfigLocation: str(tmpdir / 'config' / APPNAME),
+ core.QStandardPaths.StandardLocation.AppDataLocation: '',
+ core.QStandardPaths.StandardLocation.ConfigLocation: str(tmpdir / 'config' / APPNAME),
}
monkeypatch.setattr(standarddir.QStandardPaths, 'writableLocation',
locations.get)
@@ -135,14 +135,14 @@ class TestWritableLocation:
'qutebrowser.utils.standarddir.QStandardPaths.writableLocation',
lambda typ: '')
with pytest.raises(standarddir.EmptyValueError):
- standarddir._writable_location(QStandardPaths.StandardLocation.AppDataLocation)
+ standarddir._writable_location(core.QStandardPaths.StandardLocation.AppDataLocation)
def test_sep(self, monkeypatch):
"""Make sure the right kind of separator is used."""
monkeypatch.setattr(standarddir.os, 'sep', '\\')
monkeypatch.setattr(standarddir.os.path, 'join',
lambda *parts: '\\'.join(parts))
- loc = standarddir._writable_location(QStandardPaths.StandardLocation.AppDataLocation)
+ loc = standarddir._writable_location(core.QStandardPaths.StandardLocation.AppDataLocation)
assert '/' not in loc
assert '\\' in loc