hatchimera / tests /test_runtime_freeform.py
arkai2025's picture
feat: freeform voxel generation (Gemma 4 12B) + freeform breeding
b90431b
Raw
History Blame Contribute Delete
526 Bytes
from buddy_fusion.runtime import FakeBuddyRuntime
def test_fake_runtime_generate_creature_never_empty():
rt = FakeBuddyRuntime()
genome, boxes, status = rt.generate_creature("a cat with five arms")
assert isinstance(boxes, list) and len(boxes) > 0
assert isinstance(genome, dict) and genome.get("name")
assert status.used_fallback is True # fake always uses the exemplar
# boxes are renderable (have the 6 ints)
for b in boxes:
assert all(k in b for k in ("x", "y", "z", "w", "h", "d"))