Video editing with Python
create test for issue #145
Billy Earneyed4adbeb4047
diff --git a/tests/test_install.py b/tests/test_install.pydeleted file mode 100644index f98f9345..00000000--- a/tests/test_install.py+++ /dev/null@@ -1,10 +0,0 @@---from moviepy.editor import *--W,H = (150,180)-color_clips_props = [{ 'color':[0,0,255],- 'init_pos':[]-[0,0,255],[0,255,0],[255,0,0]-red_clip, green_clip, blue_clip = [ColorClip((W,H),color=c)- for c in RED, GREEN, BLUE]diff --git a/tests/test_issues.py b/tests/test_issues.pynew file mode 100644index 00000000..f3b4e4df--- /dev/null+++ b/tests/test_issues.py@@ -0,0 +1,36 @@+"""+Tests meant to be run with pytest+"""++import sys+import os+import pytest++from moviepy.editor import *+++#@pytest.fixture+#def example_video1():+# pass++global knights, knights10++def download_youtube_video(url, filename):+ if not os.path.exists(filename):+ print("\nDownloading %s\n" % filename)+ download_webfile(url, filename)+ print("Downloading complete...\n")+++def test_download_media(capsys):+ 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')