Files
wehub-resource-sync 4e0f4422d0
build-docs / deploy (push) Has been cancelled
Check Markdown links / markdown-link-check (push) Has been cancelled
Pytest / test (3.11) (push) Has been cancelled
Pytest / test (3.12) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

13 lines
301 B
Python

from unittest import mock
import pytest
@pytest.fixture
def with_tmp_env_file(tmp_path):
env_file = tmp_path / ".swe-agent-env"
env_file.write_text("{}")
with mock.patch.dict("os.environ", {"SWE_AGENT_ENV_FILE": str(env_file)}, clear=True):
yield env_file
env_file.unlink()