Add a pose review harness and record the blocked pose capture
Full build / Import + headless tests (push) Successful in 43s
Full build / Full desktop build + optional release (push) Skipped

This commit is contained in:
zwitschi committed 2026-11-03 10:59:23 +01:00
1 parent 2d67e14e52
commit 7a5b902797
7 files changed
+358 -13

No files matched your search

+13
View File
@@ -14,6 +14,19 @@ class NpcBaselineTests(unittest.TestCase):
self.assertEqual({row[1] for row in rows}, set(npc_baseline.VIEWS))
self.assertEqual(len({row[2] for row in rows}), 48)
def test_sheet_accepts_a_custom_view_list(self):
from PIL import Image
with tempfile.TemporaryDirectory() as tmp:
folder = Path(tmp)
for variant in npc_baseline.VARIANTS:
for view in ("idle", "sit"):
Image.new("RGB", (32, 18), (40, 60, 80)).save(
folder / f"{variant}__{view}.png")
out = npc_baseline.build_sheet(folder, folder / "sheet.jpg", ["idle", "sit"])
with Image.open(out) as sheet:
# 2 views x 320 px cells.
self.assertEqual(sheet.width, 640)
def test_latest_capture_prefers_the_full_stem(self):
with tempfile.TemporaryDirectory() as tmp:
folder = Path(tmp)