Video editing with Python
change ColorClips col argument to color in tests
Billy Earneycadfd833bf08
diff --git a/tests/test_VideoFileClip.py b/tests/test_VideoFileClip.pyindex d8f272be..992677f6 100644--- a/tests/test_VideoFileClip.py+++ b/tests/test_VideoFileClip.py@@ -3,9 +3,9 @@ from moviepy.editor import *import osdef test_setup():- red = ColorClip((1024,800), col=(255,0,0))- green = ColorClip((1024,800), col=(0,255,0))- blue = ColorClip((1024,800), col=(0,0,255))+ red = ColorClip((1024,800), color=(255,0,0))+ green = ColorClip((1024,800), color=(0,255,0))+ blue = ColorClip((1024,800), color=(0,0,255))red.fps=green.fps=blue.fps=30video = clips_array([[red, green, blue]]).set_duration(5)@@ -19,4 +19,4 @@ def test_setup():assert clip.size == [1024*3, 800]if __name__ == '__main__':- pytest.main()\ No newline at end of file+ pytest.main()diff --git a/tests/test_compositing.py b/tests/test_compositing.pyindex e3cf73f3..a1f4bd52 100644--- a/tests/test_compositing.py+++ b/tests/test_compositing.py@@ -2,9 +2,9 @@ import pytestfrom moviepy.editor import *def test_clips_array():- red = ColorClip((1024,800), col=(255,0,0))- green = ColorClip((1024,800), col=(0,255,0))- blue = ColorClip((1024,800), col=(0,0,255))+ red = ColorClip((1024,800), color=(255,0,0))+ green = ColorClip((1024,800), color=(0,255,0))+ blue = ColorClip((1024,800), color=(0,0,255))video = clips_array([[red, green, blue]])@@ -14,9 +14,9 @@ def test_clips_array():def test_clips_array():- red = ColorClip((1024,800), col=(255,0,0))- green = ColorClip((1024,800), col=(0,255,0))- blue = ColorClip((1024,800), col=(0,0,255))+ red = ColorClip((1024,800), color=(255,0,0))+ green = ColorClip((1024,800), color=(0,255,0))+ blue = ColorClip((1024,800), color=(0,0,255))video = clips_array([[red, green, blue]]).set_duration(5)diff --git a/tests/test_issues.py b/tests/test_issues.pyindex 38bf7562..1e767988 100644--- a/tests/test_issues.py+++ b/tests/test_issues.py@@ -17,23 +17,24 @@ def test_download_media(capsys):download_media.download()def test_issue_145():- video = ColorClip((800, 600), col=(255,0,0)).set_duration(5)+ video = ColorClip((800, 600), color=(255,0,0)).set_duration(5)with pytest.raises(Exception, message="Expecting Exception"):- final = concatenate_videoclips([_video], method = 'composite')+ final = concatenate_videoclips([video], method = 'composite')def test_issue_407():- red = ColorClip((800, 600), col=(255,0,0)).set_duration(5)+ red = ColorClip((800, 600), color=(255,0,0)).set_duration(5)red.fps=30assert round(red.fps) == 30- green=ColorClip((640, 480), col=(0,255,0)).set_duration(2) #ColorClip has no fps attribute- blue=ColorClip((640, 480), col=(0,0,255)).set_duration(2) #ColorClip has no fps attribute+ #ColorClip has no fps attribute+ green=ColorClip((640, 480), color=(0,255,0)).set_duration(2)+ blue=ColorClip((640, 480), color=(0,0,255)).set_duration(2)video=concatenate_videoclips([red, green, blue])assert video.fps == red.fpsdef test_issue_416():- green=ColorClip((640, 480), col=(0,255,0)).set_duration(2) #ColorClip has no fps attribute+ green=ColorClip((640, 480), color=(0,255,0)).set_duration(2) #ColorClip has no fps attributevideo1=concatenate_videoclips([green])assert video1.fps == None