From 542230f091a10138aba3a3ffb6815edad9246dc8 Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 14 Apr 2026 09:31:42 +0300 Subject: [PATCH] =?UTF-8?q?Benchmark:=20promptis=C3=A4=C3=A4nt=C3=B6=20?= =?UTF-8?q?=E2=80=94=20update-testidatan=20pit=C3=A4=C3=A4=20sis=C3=A4lt?= =?UTF-8?q?=C3=A4=C3=A4=20kaikki=20pakolliset=20kent=C3=A4t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qwen3-coder:30b users 6/7: test_update_user lähetti luontipaiva=None NOT NULL -kenttään. Uusi sääntö estää tämän. --- network-poc/tests/model-benchmark.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/network-poc/tests/model-benchmark.mjs b/network-poc/tests/model-benchmark.mjs index dff8e31..19b2535 100644 --- a/network-poc/tests/model-benchmark.mjs +++ b/network-poc/tests/model-benchmark.mjs @@ -196,6 +196,7 @@ RULES: - SQLAlchemy 2.0: DeclarativeBase + Mapped + mapped_column (not Column()) - Python type unions: str | None (not Optional[str]) - Tests: unique descriptive data per test, NOT generic "test_title" strings +- Tests: PUT/update test data MUST include ALL required (non-nullable) fields, not just the field being updated - Absolute imports only (from models import ..., from schemas import ...) - NO markdown fences inside file content — just raw code - Only test endpoints that exist in main.py — no extra tests`;