-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create test file for pull requests (#433)
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |