mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
Mocked Path.home()
in addition to setting os.environ["HOME"]
in the test_env_file_override
function.
This commit is contained in:
parent
e36d47cfdb
commit
d31eef3fc6
1 changed files with 2 additions and 1 deletions
|
@ -194,6 +194,7 @@ class TestMain(TestCase):
|
|||
cwd_env.write_text("A=cwd\nB=cwd")
|
||||
named_env.write_text("A=named")
|
||||
|
||||
with patch('pathlib.Path.home', return_value=fake_home):
|
||||
main(["--yes", "--exit", "--env-file", str(named_env)])
|
||||
|
||||
self.assertEqual(os.environ["A"], "named")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue