From a3f1ead3e6cfc24fe072d10df2b2904b4d8911fb Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 14 Apr 2026 13:58:13 +0300 Subject: [PATCH] =?UTF-8?q?CodeBench:=20code-small=20=E2=80=94=20test=5Fli?= =?UTF-8?q?st=20assert=20>=3D=201=20(ei=20=3D=3D=201)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 8b:n blog kaatui koska test_list assertoi tarkkaa määrää vaikka testit jakavat saman tietokannan. --- kipina-codebench/prompts/code-small.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kipina-codebench/prompts/code-small.md b/kipina-codebench/prompts/code-small.md index 9b57e6e..6c8bd50 100644 --- a/kipina-codebench/prompts/code-small.md +++ b/kipina-codebench/prompts/code-small.md @@ -47,4 +47,6 @@ CRITICAL: - 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 - 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