Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

test(chroma, prompt): cutout.KEYS and a repeat note's kind are pinned as written, so a one-character change of either declaration fails

Soohong Kim0a153d45355f
diff --git a/tests/frames/test_cutout.py b/tests/frames/test_cutout.py
index 3aa9889..0dbad8c 100644
--- a/tests/frames/test_cutout.py
+++ b/tests/frames/test_cutout.py
@@ -161,3 +161,4 @@ def test_the_cutout_key_flag_reads_cutout_keys() -> None:
from sprite_gen.frames import cutout as cutout_mod
assert _key_choices("cutout") is cutout_mod.KEYS
+ assert cutout_mod.KEYS == ("auto", "white", "magenta", "green", "measured") # spelt out: the routes take these
diff --git a/tests/gen/test_prompt_assembly.py b/tests/gen/test_prompt_assembly.py
index 1723b66..fd815af 100644
--- a/tests/gen/test_prompt_assembly.py
+++ b/tests/gen/test_prompt_assembly.py
@@ -266,6 +266,8 @@ def test_video_prompt_warns_when_the_callers_words_turn_the_other_way() -> None:
record = clip_prompt.plan_prompt(direction="side", state="walk", facing="right", motion="It walks to the left.")
assert any('"walks to the left"' in line for line in record["warnings"])
assert record["notes"][0]["kind"] == "conflict"
+ again = clip_prompt.plan_prompt(direction="side", state="walk", facing="right", motion="It walks to the right.")
+ assert again["warnings"] == [] and again["notes"][0]["kind"] == "repeat"
quiet = clip_prompt.plan_prompt(direction="side", state="walk", facing="right", motion="It strolls.")
assert quiet["warnings"] == [] and "notes" not in quiet