From e8e348d478c2d2c26d28971a77c0f093efd99628 Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Fri, 10 Jul 2026 20:43:46 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20update=20test=20=E2=80=94=20empty=20tick?= =?UTF-8?q?er=20now=20filtered=20out=20instead=20of=20failing=20extraction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_extractor_schemas.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_extractor_schemas.py b/tests/test_extractor_schemas.py index 8f2b1fa..d35a03c 100644 --- a/tests/test_extractor_schemas.py +++ b/tests/test_extractor_schemas.py @@ -215,12 +215,14 @@ def test_all_company_fields_required(): def test_validate_semantic_missing_ticker_is_error(): - """A company with an empty ticker produces a semantic error, not just a warning.""" + """A company with an empty ticker is filtered out during normalization.""" data = _valid_extraction() data["companies"][0]["ticker"] = "" report = validate_extraction(data) - assert not report.valid - assert any("company_missing_ticker" in e for e in report.errors) + # Empty-ticker companies are now filtered out (not a fatal error) + assert report.valid + assert report.parsed is not None + assert len(report.parsed.companies) == 0 def test_validate_semantic_invalid_impact_horizon_is_error():