Skip to content

Commit

Permalink
Test issue 407 (video has a valid fps after concatenate function) (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
bearney74 authored Feb 23, 2017
1 parent 372177a commit 09d3572
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,33 @@ def download_youtube_video(url, filename):


def test_download_media(capsys):
global knights, knights10

with capsys.disabled():
download_youtube_video("zvCvOC2VwDc", "media/knights.mp4")

knights=VideoFileClip("media/knights.mp4")
knights10 = knights.subclip(60,70)



def test_issue_145():
with pytest.raises(Exception, message="Expecting Exception"):
_final = concatenation([knights10], method = 'composite')

def test_issue_407():
assert round(knights.fps) == 30
assert knights10.fps == knights.fps

_text=TextClip("blah").set_duration(2) #TextClip has no fps attribute

_video=concatenate_videoclips([_text, knights10, knights10])
assert _video.fps == knights10.fps

# uncomment when PR 416 is merged.
#_video=concatenate_videoclips([_text])
#assert _video.fps == None


def test_PR_306():
assert TextClip.list('font') != []
assert TextClip.list('color') != []
Expand Down

0 comments on commit 09d3572

Please sign in to comment.