Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: sonnet Assistant-Process: 295952@bnt-lap001 Assistant-Session: e93f64ad-516c-46eb-9666-aad8d300c477
9 lines
368 B
Python
9 lines
368 B
Python
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def _isolated_user(tmp_path_factory, monkeypatch):
|
|
"""Tests never read or write the real user's app settings."""
|
|
monkeypatch.setenv("RTUT_CONFIG_DIR", str(tmp_path_factory.mktemp("rtut-config")))
|
|
monkeypatch.delenv("RTUT_USER", raising=False)
|
|
monkeypatch.setattr("getpass.getuser", lambda: "tester-login")
|