Skip to content

Commit

Permalink
add simple unit test for disabling chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
slhck committed Apr 11, 2018
1 parent 99dd387 commit e2feef1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test.py
Expand Up @@ -118,6 +118,11 @@ def test_metadata_disable(self):
output, _ = ffmpeg_normalize_call(['test/test.mp4', '-mn', '-c:a', 'aac', '-o', 'normalized/test.mp4'])
self.assertTrue(os.path.isfile('normalized/test.mp4'))

def test_chapters_disable(self):
Path('normalized').mkdir(exist_ok=True)
output, _ = ffmpeg_normalize_call(['test/test.mp4', '-cn', '-c:a', 'aac', '-o', 'normalized/test.mp4'])
self.assertTrue(os.path.isfile('normalized/test.mp4'))

def test_version(self):
output, _ = ffmpeg_normalize_call(['--version'])
self.assertTrue("ffmpeg-normalize v" in output)
Expand Down

0 comments on commit e2feef1

Please sign in to comment.