fix: update stale tests — 50 companies, normalization defaults, low-confidence thresholds
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user