summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-11-03 18:58:02 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-11-03 23:06:11 +0100
commitd6e1d7847707c4605ac3373ee8e70eeea1333079 (patch)
tree4e0f388b5449d900516a4a8852bed511f1f6979a /tests/conftest.py
parent963df3b271113a5515e10f878496355a6dcaf9af (diff)
downloadqutebrowser-d6e1d7847707c4605ac3373ee8e70eeea1333079.tar.gz
qutebrowser-d6e1d7847707c4605ac3373ee8e70eeea1333079.zip
tests: Use three-argument form of monkeypatch
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index ef169be4f..6c0c716c2 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -281,10 +281,10 @@ def apply_fake_os(monkeypatch, request):
else:
raise ValueError("Invalid fake_os {}".format(name))
- monkeypatch.setattr('qutebrowser.utils.utils.is_mac', mac)
- monkeypatch.setattr('qutebrowser.utils.utils.is_linux', linux)
- monkeypatch.setattr('qutebrowser.utils.utils.is_windows', windows)
- monkeypatch.setattr('qutebrowser.utils.utils.is_posix', posix)
+ monkeypatch.setattr(utils, 'is_mac', mac)
+ monkeypatch.setattr(utils, 'is_linux', linux)
+ monkeypatch.setattr(utils, 'is_windows', windows)
+ monkeypatch.setattr(utils, 'is_posix', posix)
@pytest.fixture(scope='session', autouse=True)