You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
350 B
13 lines
350 B
"""Isolate user-dir lookups from the real %APPDATA% during tests."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def _isolate_home(tmp_path_factory, monkeypatch):
|
|
root = tmp_path_factory.mktemp("appdata")
|
|
monkeypatch.setenv("APPDATA", str(root))
|
|
monkeypatch.delenv("XDG_CONFIG_HOME", raising=False)
|