hatchimera / tests /test_select_routing.py
arkai2025's picture
feat(edit): replace small-model selector with keyword + parametric assembler
f2b4b4e
Raw
History Blame Contribute Delete
663 Bytes
from buddy_fusion.runtime import FakeBuddyRuntime
def test_fake_runtime_edit_returns_catalog_pick():
g, boxes, tweaks, status = FakeBuddyRuntime().edit_creature(
{"name": "x"},
[{"x": 0, "y": 0, "z": 0, "w": 2, "h": 2, "d": 2, "color": "#888"}],
"add horns",
)
assert len(boxes) >= 1
assert len(tweaks) == 4
def test_fake_runtime_unmatched_still_changes():
base = [{"x": 0, "y": 0, "z": 0, "w": 2, "h": 2, "d": 2, "color": "#888"}]
g, boxes, tweaks, status = FakeBuddyRuntime().edit_creature(
{"name": "x"}, base, "asdfghjkl",
)
assert len(boxes) > len(base) # defaults to horns, never a no-op