Skip to content

Video editing with Python

create test file for pull requests (#433)

Billy Earney372177a3bacc
diff --git a/tests/test_PR.py b/tests/test_PR.py
new file mode 100644
index 00000000..d9c3392b
--- /dev/null
+++ b/tests/test_PR.py
@@ -0,0 +1,29 @@
+"""
+Tests meant to be run with pytest
+"""
+
+import sys
+import os
+import pytest
+
+from moviepy.editor import *
+
+
+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_PR_339():
+ #in caption mode
+ overlay = TextClip(txt='foo',
+ color='white',
+ size=(640, 480),
+ method='caption',
+ align='center',
+ fontsize=25)
+
+ #in_label_mode
+ overlay = TextClip(txt='foo', method='label')