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 526069f commit a08b5edCopy full SHA for a08b5ed
tests/test_cli.py
@@ -58,8 +58,9 @@ def _create_test_module(**namespace: Any) -> None:
58
59
60
@pytest.fixture
61
-def empty_last_conversation_path():
62
- path = PYDANTIC_AI_HOME / LAST_CONVERSATION_FILENAME
+def empty_last_conversation_path(tmp_path, mocker):
+ path = tmp_path / LAST_CONVERSATION_FILENAME
63
+ mocker.patch('pydantic_ai._cli.PYDANTIC_AI_HOME', tmp_path)
64
65
if path.exists():
66
path.unlink()
0 commit comments