fix: update stale tests — 50 companies, normalization defaults, low-confidence thresholds

This commit is contained in:
Celes Renata
2026-04-17 03:28:22 +00:00
parent 8ac2c1ea7a
commit d80d44e2fc
3 changed files with 14 additions and 12 deletions
@@ -171,9 +171,11 @@ class TestExtractionStage:
assert len(report.errors) > 0
def test_validate_extraction_rejects_bad_schema(self):
bad = {"summary": "test"} # missing required fields
bad = {"summary": "test"} # missing required fields — normalized with defaults
report = validate_extraction(bad)
assert not report.valid
assert report.valid
assert report.parsed is not None
assert "incomplete_model_output" in report.parsed.extraction_warnings
def test_extraction_result_matches_intelligence_schema(self):
result = ExtractionResult.model_validate(SAMPLE_EXTRACTION_JSON)