From d8024f6f4fd1a42063031ca0fe3a4119050a73c4 Mon Sep 17 00:00:00 2001 From: Matt Johnson Date: Tue, 19 May 2026 21:48:44 +0000 Subject: [PATCH] =?UTF-8?q?tests(2-I):=20derive=20syntax=5Ftokens=20whitel?= =?UTF-8?q?ist=20from=20STREAMS=20per=20=C2=A710.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/test_producer_doc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_producer_doc.py b/tests/test_producer_doc.py index 7cf2767..aef32e7 100644 --- a/tests/test_producer_doc.py +++ b/tests/test_producer_doc.py @@ -203,9 +203,9 @@ def test_no_orphan_adapter_references_in_anti_patterns(): quoted = set(re.findall(r'"([a-z][a-z_]*)"', section)) # Whitelist Python-syntax tokens that incidentally appear in the section; # everything else in this set is asserted to be a real adapter name. - syntax_tokens = { - "CENTRAL_WX", "CENTRAL_FIRE", # stream names quoted as examples - } + # Derived from STREAMS per §10.4 — stream names appear quoted as examples + # and would otherwise look like orphan adapter references. + syntax_tokens = {s.name for s in STREAMS} candidate_adapter_names = quoted - {t.lower() for t in syntax_tokens} known_adapters = set(discover_adapters().keys()) orphans = {n for n in candidate_adapter_names if n not in known_adapters}