Skip to content

Commit

Permalink
test that video is found
Browse files Browse the repository at this point in the history
  • Loading branch information
thenewguy committed Nov 17, 2019
1 parent e2c2cfc commit 1bbcd89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_VideoClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def test_write_videofile_default_audio():
location = os.path.join(TMP_DIR, "test_write_videofile_default_audio.mp4")
clip.write_videofile(location)
d=ffmpeg_parse_infos(location)
assert d['video_found']
assert d['audio_found']


Expand All @@ -164,6 +165,7 @@ def test_write_videofile_without_audio():
location = os.path.join(TMP_DIR, "test_write_videofile_without_audio.mp4")
clip.write_videofile(location, audio=False)
d=ffmpeg_parse_infos(location)
assert d['video_found']
assert not d['audio_found']


Expand All @@ -172,6 +174,7 @@ def test_write_videofile_with_audio():
location = os.path.join(TMP_DIR, "test_write_videofile_with_audio.mp4")
clip.write_videofile(location, audio=True)
d=ffmpeg_parse_infos(location)
assert d['video_found']
assert d['audio_found']


Expand All @@ -180,6 +183,7 @@ def test_write_videofile_with_provided_audio():
location = os.path.join(TMP_DIR, "test_write_videofile_with_provided_audio.mp4")
clip.write_videofile(location, audio="media/crunching.mp3")
d=ffmpeg_parse_infos(location)
assert d['video_found']
assert d['audio_found']


Expand All @@ -191,6 +195,7 @@ def test_write_videofile_with_silent_video():
location = os.path.join(TMP_DIR, "test_write_videofile_with_silent_video.mp4")
clip.write_videofile(location)
d=ffmpeg_parse_infos(location)
assert d['video_found']
assert not d['audio_found']


Expand All @@ -202,6 +207,7 @@ def test_write_videofile_adds_audio_to_silent_video():
location = os.path.join(TMP_DIR, "test_write_videofile_adds_audio_to_silent_video.mp4")
clip.write_videofile(location, audio="media/crunching.mp3")
d=ffmpeg_parse_infos(location)
assert d['video_found']
assert d['audio_found']


Expand Down

0 comments on commit 1bbcd89

Please sign in to comment.