21 lines
555 B
Python
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
|