Use explicit .strip() assertions in testgen repair tests

This commit is contained in:
Kevin Turcios 2026-04-22 20:36:14 -05:00
parent 6abcc8daa3
commit b3840627bb

View file

@ -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(