test(pipeline): relax grounding assertion to stable source key

This commit is contained in:
Trevin Chow
2026-05-17 00:21:57 -07:00
parent 5c802b0daa
commit ec0b126af6
+5 -1
View File
@@ -75,8 +75,12 @@ class PipelineV3Tests(unittest.TestCase):
web_backend="parallel", web_backend="parallel",
external_plan=plan, 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("grounding", report.errors_by_source)
self.assertIn("PARALLEL_API_KEY", report.errors_by_source["grounding"])
class TestSourceFetchCap(unittest.TestCase): class TestSourceFetchCap(unittest.TestCase):