qutebrowser profile manager
at main 420 B view raw
1from os import environ 2from pathlib import Path 3 4import pytest 5 6 7@pytest.fixture(autouse=True) 8def no_homedir_fixture(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: 9 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)