| 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")) | |