mirror of
https://github.com/codeflash-ai/codeflash-agent.git
synced 2026-05-04 18:25:19 +00:00
Use explicit .strip() assertions in testgen repair tests
This commit is contained in:
parent
6abcc8daa3
commit
b3840627bb
1 changed files with 2 additions and 2 deletions
|
|
@ -350,7 +350,7 @@ class TestTestgenRepairEndpoint:
|
|||
|
||||
assert 200 == resp.status_code
|
||||
data = resp.json()
|
||||
assert repaired in data["generated_tests"]
|
||||
assert repaired == data["generated_tests"].strip()
|
||||
|
||||
async def test_invalid_trace_id(self, client) -> None: # type: ignore[no-untyped-def]
|
||||
"""
|
||||
|
|
@ -437,7 +437,7 @@ class TestTestgenRepairEndpoint:
|
|||
)
|
||||
|
||||
assert 200 == resp.status_code
|
||||
assert good_code in resp.json()["generated_tests"]
|
||||
assert good_code == resp.json()["generated_tests"].strip()
|
||||
assert 2 == mock_llm_client.call.await_count
|
||||
|
||||
async def test_all_retries_fail_returns_422(
|
||||
|
|
|
|||
Loading…
Reference in a new issue