agent: implement issue #3 - Enhancement: 检查现有的代码框架,确认是否需要优化
This commit is contained in:
@@ -58,3 +58,15 @@ Please add tests.
|
||||
|
||||
assert parsed.verdict == "REQUEST_CHANGES"
|
||||
assert parsed.suggested_pr_comment == "Please add tests."
|
||||
|
||||
|
||||
def test_review_report_parsing_accepts_prompt_bullet_contract():
|
||||
report = """- Verdict: APPROVE
|
||||
- Summary: Done
|
||||
- Suggested PR Comment: Looks good.
|
||||
"""
|
||||
|
||||
parsed = parse_review_report(report)
|
||||
|
||||
assert parsed.verdict == "APPROVE"
|
||||
assert parsed.suggested_pr_comment == "Looks good."
|
||||
|
||||
Reference in New Issue
Block a user