We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1343d3c commit ff59b10Copy full SHA for ff59b10
tests/__init__.py
@@ -1,9 +1,12 @@
1
+from os import environ
2
from pathlib import Path
3
4
import pytest
5
6
7
@pytest.fixture(autouse=True)
8
def no_homedir_fixture(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
- monkeypatch.setattr("qbpm.paths.default_qbpm_application_dir", lambda: tmp_path)
9
- monkeypatch.setattr("qbpm.paths.default_profile_dir", lambda: tmp_path)
+ environ["XDG_CONFIG_HOME"] = str(tmp_path)
10
+ environ["XDG_DATA_HOME"] = str(tmp_path)
11
+ monkeypatch.setattr("qbpm.paths.get_app_dir", lambda *_args, **_kwargs: tmp_path)
12
+ monkeypatch.setattr("qbpm.paths.Path.home", lambda: tmp_path)
0 commit comments