feat: gate route_tuple helper

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 17:35:51 +02:00
parent 11772bc29d
commit f0f8676eaa
2 changed files with 26 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# tests/test_gate.py
from gates import gate
def test_route_tuple_places_image_at_chosen():
B = object()
t = gate.route_tuple(2, "IMG", B, max_routes=5)
assert t == (B, B, "IMG", B, B)
def test_route_tuple_length_is_max():
B = object()
assert len(gate.route_tuple(0, "IMG", B, max_routes=10)) == 10