From ec0b126af60e1c72c22dadfcd42b66287be8067c Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Sun, 17 May 2026 00:21:57 -0700 Subject: [PATCH] test(pipeline): relax grounding assertion to stable source key --- tests/test_pipeline_v3.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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):