Init
This commit is contained in:
10
tests/test_prompt.py
Normal file
10
tests/test_prompt.py
Normal 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
|
||||
Reference in New Issue
Block a user