This commit is contained in:
2026-02-02 19:54:04 +00:00
commit d55002e218
23 changed files with 672 additions and 0 deletions

10
tests/test_prompt.py Normal file
View File

@@ -0,0 +1,10 @@
from ai_reviewer.prompt import build_prompt
def test_prompt_includes_diff_chunk_and_schema():
chunk = "diff --git a/x.py b/x.py\n@@ -1 +1 @@\n-print(1)\n+print(2)\n"
prompt = build_prompt(chunk)
assert "Output JSON schema" in prompt
assert "Diff chunk:" in prompt
assert chunk.strip() in prompt