Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
test(curate): import the frames helper through the tests/ root
Soohong Kimf7b6f5503546
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 006bddc..4bad17e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ All notable public changes to `sprite-gen` are recorded here. Versions track the- Local pre-checks refuse, before any call: no input at all, more than 7 references, `<IMAGE_n>` tags outside the given references (or with none), 1080p with references, and `last_frame` / `image`+`reference` on the classic model.- The `sprite-gen-video-report` carries `mode` (`image-to-video`, `first-last`, `last-frame`, `reference`, `extend`, `edit`), `inputs` (local paths by role) and, for extend / edit, `input_duration`; every existing field stays.- Test isolation: the packaging import-surface probe now restores the parent package attribute and `sys.modules` entry it touched, so importing the retired `sprite_gen.gen.generate_image` shim no longer replaces the `generate_image()` function for later `tests/gen` runs. `pytest tests/packaging tests/gen` is green in any order.+- Test isolation: `tests/curate` imports its shared helper from `tests/frames` through the `tests/` root instead of by bare module name, so `pytest tests/curate` passes on its own instead of depending on `tests/frames` having been collected first.- The expired-login prescription for Grok video and images no longer names a bare prompt (`grok -p ok`): on the grok CLI that starts the coding agent in the current directory, which can read, write and spend on its own. The prescription is now a non-agent round-trip (`grok models`) run from an empty directory, with `grok login` as the fallback, and the message says so. A test pins the prescription to a non-agent command.## v2.2.0 - Independent asset tools and optional scenesdiff --git a/docs/troubleshooting.md b/docs/troubleshooting.mdindex ba33df4..78e8354 100644--- a/docs/troubleshooting.md+++ b/docs/troubleshooting.md@@ -71,6 +71,11 @@`import sprite_gen.gen.generate_image` 를 실행하는 코드는 같은 덮어쓰기를 일으킨다.- **확인**: `pytest tests/packaging tests/gen`, `pytest tests/gen tests/packaging`,`pytest tests/` 가 모두 같은 결과여야 한다.+- **같은 계열(2026-09-13 수리)**: `tests/curate` 가 `tests/frames` 의 헬퍼를 bare 이름+ (`from test_takes_heal import …`)으로 가져와 `pytest tests/curate` 단독이+ `ModuleNotFoundError` 였다. 다른 폴더의 테스트 헬퍼는 `tests/` 루트 기준+ (`from frames.test_takes_heal import …`)으로만 import 한다 — pyproject 의+ `pythonpath = ["tests"]` 가 그 루트를 보장하고, 폴더 수집 순서는 보장하지 않는다.## Relateddiff --git a/tests/curate/test_curation_salvage_and_clones.py b/tests/curate/test_curation_salvage_and_clones.pyindex 4744e32..47b27fd 100644--- a/tests/curate/test_curation_salvage_and_clones.py+++ b/tests/curate/test_curation_salvage_and_clones.py@@ -143,7 +143,10 @@ def test_legacy_unstamped_sidecar_drops_all_and_the_save_backs_it_up(fixture_rundef test_take_append_prefix_rule(tmp_path: Path) -> None:"""테이크가 뒤에 추가돼도(현재 세그먼트의 접두) 기존 행 큐레이션은 유효하다.takes 는 pixel_perfect 계약이므로 pp 런을 test_takes_heal 과 같은 방식으로 만든다."""- from test_takes_heal import _build_run, _strip+ # Imported through the tests/ root (pyproject `pythonpath`), not by bare name: the+ # bare form only resolves after pytest has collected tests/frames, so+ # `pytest tests/curate` alone failed with ModuleNotFoundError.+ from frames.test_takes_heal import _build_run, _striprun = _build_run(tmp_path)_extract(run)