summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_pdfjs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/browser/test_pdfjs.py')
-rw-r--r--tests/unit/browser/test_pdfjs.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/unit/browser/test_pdfjs.py b/tests/unit/browser/test_pdfjs.py
index 1f0133d02..e50bfed4e 100644
--- a/tests/unit/browser/test_pdfjs.py
+++ b/tests/unit/browser/test_pdfjs.py
@@ -26,10 +26,7 @@ from qutebrowser.browser import pdfjs
from qutebrowser.utils import usertypes, utils
-@pytest.fixture(autouse=True)
-def patch_data_dir(monkeypatch, tmpdir):
- monkeypatch.setattr(pdfjs.standarddir, 'data',
- lambda: str(tmpdir / 'data'))
+pytestmark = [pytest.mark.usefixtures('data_tmpdir')]
@pytest.mark.parametrize('available, snippet', [