Files
lai_automatisierung/tests/test_agent.py
Christian Meyer 2df37b671b
Some checks failed
CI / test (push) Has been cancelled
Improve coding agent reliability
2026-08-21 23:46:16 +02:00

15 lines
499 B
Python

from pathlib import Path
from test_config import settings
from lai_automation.agent import AiderAgent
def test_aider_command_cannot_mutate_git_configuration_or_send_analytics() -> None:
command = AiderAgent(settings()).command(Path("/repo/.git/task.txt"))
assert "--no-gitignore" in command
assert "--no-analytics" in command
assert "--no-auto-commits" in command
assert command.count("/dev/null") == 2
assert command[-4:] == ["--edit-format", "diff", "--timeout", "60"]