Permalink
Browse files

update tests

  • Loading branch information...
sdpython committed Jan 21, 2018
1 parent fd22639 commit b9f69164352155b3e72230a27ad74a868c50cfd0
@@ -46,7 +46,7 @@
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder, ExtTestCase
from src.code_beatrix.art.video import video_save, video_image, video_position, video_resize, clean_video
from src.code_beatrix.art.video import video_save, video_image, video_position, clean_video
class TestVideoImagePosition(ExtTestCase):
@@ -46,7 +46,7 @@
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder, ExtTestCase
from src.code_beatrix.art.video import video_save, video_image, video_position, video_resize, clean_video
from src.code_beatrix.art.video import video_save, video_image, video_resize, clean_video
class TestVideoImageResize(ExtTestCase):
@@ -63,14 +63,16 @@ def test_modify_placement(self):
exp = os.path.join(temp, "h2.mp4")
video_save(vid2, exp)
self.assertExists(exp)
clean_video(vid2)
clean_video([vid2, vid])
vid = video_load(os.path.join(temp, '..', 'data', 'videxa.mp4'))
vid2 = video_compose(vid, vid, t2=1, place='v2')
exp = os.path.join(temp, "v2.mp4")
video_save(vid2, exp)
self.assertExists(exp)
clean_video(vid2)
clean_video([vid2, vid])
vid = video_load(os.path.join(temp, '..', 'data', 'videxa.mp4'))
vid2 = video_compose(vid, vid, t2=1, place='br', zoom=0.2)
exp = os.path.join(temp, "br.mp4")
video_save(vid2, exp)

0 comments on commit b9f6916

Please sign in to comment.