Files
CLI-Anything/live2d/agent-harness
zyzly0705andzyzly0705 43f29815a9 test: add regression tests for Live2D review blockers (#350)
* test: add regression tests for review blockers

- backup-clean --json actually deletes old backups
- flatten copies motion Sound assets
- save_model uses atomic write (tempfile + os.replace)
- auto_backup deduplicates on content, not wall-clock time
- save_model cleans up temp files on error

* test: use CliRunner in backup-clean regression test

The previous test deleted files manually, which would pass even if the
CLI regressed. Now it invokes 'backup-clean --keep 2 --json' through
CliRunner and asserts both disk state and JSON output.

---------

Co-authored-by: zyzly0705 <zyzly0705@users.noreply.github.com>
2026-06-14 16:50:41 +08:00
..