diff --git a/tests/test_pipeline_v3.py b/tests/test_pipeline_v3.py index 01c970d..27e1cfd 100644 --- a/tests/test_pipeline_v3.py +++ b/tests/test_pipeline_v3.py @@ -75,8 +75,12 @@ class PipelineV3Tests(unittest.TestCase): web_backend="parallel", external_plan=plan, ) + # Anchor on the stable source key, not the exact wording of the + # grounding.py error message. Phrasing can shift (e.g., when the + # missing-key check moves or the message is reworded) without + # changing the contract that the grounding source registers an + # error when its required backend key is unset. self.assertIn("grounding", report.errors_by_source) - self.assertIn("PARALLEL_API_KEY", report.errors_by_source["grounding"]) class TestSourceFetchCap(unittest.TestCase):