mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-26 05:29:45 +00:00
Bind node API recipe controls to the add-node specimen
The first exact documentation run found two fixture-selection failures: the Nodes and Config section also contains export/import JSON. Read only the existing Add Node subsection for its single configuration specimen; retain all transport, trust and original-document controls. Contract-Neutral: Documentation recipe test extraction only; no product runtime, subsystem contract or guide content change. Change-source: pulse-maintainer
This commit is contained in:
@@ -33,7 +33,8 @@ def preparation() -> str:
|
||||
|
||||
|
||||
def sample() -> dict:
|
||||
blocks = re.findall(r"```json\n(.*?)```", section(), re.DOTALL)
|
||||
add_node = section().split("### Add Node\n", 1)[1].split("\n### ", 1)[0]
|
||||
blocks = re.findall(r"```json\n(.*?)```", add_node, re.DOTALL)
|
||||
if len(blocks) != 1:
|
||||
raise AssertionError("expected one node configuration specimen")
|
||||
return json.loads(blocks[0])
|
||||
|
||||
Reference in New Issue
Block a user