fix: Improve test_pipe_editor_with_fake_editor reliability by using explicit log file path

This commit is contained in:
Paul Gauthier (aider) 2025-02-24 10:11:45 -08:00
parent 4560572ff2
commit a8635bade2

View file

@ -108,7 +108,7 @@ with open(sys.argv[0] + ".log", "w") as f:
pipe_editor("test content", suffix="md", editor=editor_cmd)
# Read the log file to see what arguments were passed
with open(f"{script_path}.log") as f:
with open(log_path) as f:
called_args = f.read().strip()
# Verify the editor was called with a .md file