History is kept by flow id: runs, cascades, rollups and events file the id in their flow column and nodes as <flow id>.<node>, the API answers flow plus flow_name and shows and takes nodes as <key>.<node>; events carry flow_id from the moment they are published; run queue items, the stage cache and cached curves keep ids and keys apart; endpoints, the brain graph, device bindings and search name the id to open
This commit is contained in:
@@ -629,9 +629,12 @@ def test_a_devices_io_comes_from_its_device_nodes(
|
||||
"config": {"pull": "up", "debounce_ms": 50},
|
||||
},
|
||||
]
|
||||
assert [(b["flow"], b["node"], b["port"]) for b in read["bindings"]] == [
|
||||
("porch", "porch", "backlight"),
|
||||
("porch", "porch", "gpio.4"),
|
||||
# The flow by key, and by the id that opens it.
|
||||
assert [
|
||||
(b["flow"], b["flow_id"], b["node"], b["port"]) for b in read["bindings"]
|
||||
] == [
|
||||
("porch", "porch", "porch", "backlight"),
|
||||
("porch", "porch", "porch", "gpio.4"),
|
||||
]
|
||||
again = client.get(f"{PANELS}/porch_io", headers=superuser_token_headers)
|
||||
assert again.content == first.content
|
||||
|
||||
Reference in New Issue
Block a user