test(pipeline): relax grounding assertion to stable source key
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user