CodeBench: code-small — test_list assert >= 1 (ei == 1)

8b:n blog kaatui koska test_list assertoi tarkkaa määrää
vaikka testit jakavat saman tietokannan.
This commit is contained in:
2026-04-14 13:58:13 +03:00
parent 7fe72480b1
commit a3f1ead3e6

View File

@@ -47,4 +47,6 @@ CRITICAL:
- Use ONLY fields from the JSON spec — no created_at or extra fields - Use ONLY fields from the JSON spec — no created_at or extra fields
- Generate EXACTLY 6 tests per entity: create, list, get_by_id, not_found, update, delete - Generate EXACTLY 6 tests per entity: create, list, get_by_id, not_found, update, delete
- No search, filter, or other extra tests - No search, filter, or other extra tests
- test_list: assert len(response.json()) >= 1, NEVER assert == 1 (database is shared between tests)
- test_create for child entities: create parent FIRST, use parent's id
- No markdown fences in output - No markdown fences in output