Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

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

Trevin Chowec0b126af60e
diff --git a/tests/test_pipeline_v3.py b/tests/test_pipeline_v3.py
index 01c970dc..27e1cfd7 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):