Files
lai_automatisierung/tests/test_agent.py
Christian Meyer 25ed6a8439
Some checks failed
CI / test (push) Has been cancelled
CI / test (pull_request) Has been cancelled
feat: replace Aider with secure mini-SWE-agent worker
2026-08-31 02:46:58 +02:00

21 lines
555 B
Python

from __future__ import annotations
from lai_automation.agent import MiniSWEAgentRunner
from lai_automation.models import Issue
def test_task_uses_issue_text_not_github_parser() -> None:
issue = Issue(
number=42,
title="Wrong result",
body="Original prompt and expected result",
html_url="https://gitea.example.test/owner/lai/issues/42",
labels=(),
)
task = MiniSWEAgentRunner._task(issue)
assert "Issue #42: Wrong result" in task
assert issue.html_url in task
assert issue.body in task