Shenrui-Ma/video-regen-recipes / templates/character-short/bit-by-bit-heartache
bit-by-bit-heartache
Verified用角色参考图在本机制作 Heartache 连续动作配乐短片.
tests/test_default.py
View on GitHubimport importlib.util
from pathlib import Path
import unittest
spec=importlib.util.spec_from_file_location('render_default',Path(__file__).parents[1]/'scripts/render_default.py')
m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m)
class TimelineTests(unittest.TestCase):
def test_pr_visible_ranges_sum_to1587(self):
self.assertEqual(sum(m.KEEP),1587)
self.assertEqual(sum(m.KEEP)/m.FPS,26.45)
self.assertEqual(m.SOURCE_FRAMES,[158,158,175,175])
def test_final_music_and_timeline_filter(self):
graph=m.filter_graph()
for i,n in enumerate([395,373,382,437]):self.assertIn(f'[{i}:v]fps=60,trim=start_frame=0:end_frame={n}',graph)
self.assertIn('afade=t=out:st=25.95:d=0.5',graph)
self.assertNotIn('atempo',graph)
self.assertNotIn('rife',graph.lower())
if __name__=='__main__':unittest.main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |