test(cv-import): qualify regression and hand off conditional acceptance

This commit is contained in:
cesnimda
2026-10-26 19:09:43 +01:00
parent b62962c68a
commit ef425c288b
11 changed files with 438 additions and 5 deletions
@@ -35,6 +35,8 @@ RUN_SCHEMA = {
"RawExtractedText": ("TEXT", 0, 0),
"NormalizedText": ("TEXT", 0, 0),
"StructuredProfileJson": ("TEXT", 0, 0),
"DocumentJson": ("TEXT", 0, 0),
"ReviewJson": ("TEXT", 0, 0),
"ErrorMessage": ("TEXT", 0, 0),
"StartedAtUtc": ("TEXT", 1, 0),
"CompletedAtUtc": ("TEXT", 0, 0),
@@ -246,6 +248,7 @@ def self_check() -> dict:
assert row["OwnerUserId"] == quoted_id and row["Status"] == "pending_review"
assert row["Trigger"] == "upload" and row["ArtifactId"] is None
assert row["ErrorMessage"] is None and row["AppliedAtUtc"] is None
assert row["DocumentJson"] is None and row["ReviewJson"] is None
assert row["ParserVersion"] == row["NormalizerVersion"] == row["LlmPromptVersion"] == "native-offline-fixture"
assert row["RawExtractedText"] == "Synthetic raw — æøå" and row["NormalizedText"] == "French\nNorwegian B1"
assert json.loads(row["StructuredProfileJson"]) == submitted