Permalink
Browse files

update requirements, update unit test

  • Loading branch information...
sdpython committed Dec 29, 2017
1 parent c0bf7df commit 4bf7fa5660e23dcc83f4111baec30739ddc6a080
Showing with 15 additions and 3 deletions.
  1. +3 −0 .travis.yml
  2. +10 −3 _unittests/ut_faq/test_video.py
  3. +1 −0 build_script.bat
  4. +1 −0 requirements_conda.txt
View
@@ -7,6 +7,9 @@ addons:
- apt:
- packages:
- ffmpeg
- gfortran
- libhdf5-serial-dev
- liblapack-dev
install:
# We do this conditionally because it saves us some downloading if the
# version is the same.
@@ -47,7 +47,7 @@
class TestVideo(ExtTestCase):
def test_extract_video(self):
def test_extract_avideo(self):
fLOG(
__file__,
self._testMethodName,
@@ -66,11 +66,18 @@ def test_extract_frames(self):
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
temp = get_temp_folder(__file__, "temp_video_extract_frames")
vid = os.path.join(temp, '..', 'data', 'videxa.mp4')
vid = os.path.join(os.path.dirname(__file__), 'data', 'videxa.mp4')
fra = list(video_enumerate_frames(vid))
self.assertEqual(len(fra), 78)
self.assertEqual(fra[0].shape, (720, 404, 3))
def test_extract_frames_img(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
temp = get_temp_folder(__file__, "temp_video_extract_frames_img")
vid = os.path.join(temp, '..', 'data', 'videxa.mp4')
fns = list(video_enumerate_frames(vid, folder=temp))
self.assertEqual(len(fns), 78)
View
@@ -10,4 +10,5 @@ if not exist %pythonexe% set pythonexe="c:\Python36_x64\python.exe"
:custom_python:
@echo [python] %pythonexe%
%pythonexe% -u setup.py build_script
%pythonexe% -u setup.py moviepy-setup
if %errorlevel% neq 0 exit /b %errorlevel%
View
@@ -1,3 +1,4 @@
basemap
bokeh
Cython
ipython

0 comments on commit 4bf7fa5

Please sign in to comment.