Skip to content

Commit

Permalink
update requirements, update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Dec 29, 2017
1 parent c0bf7df commit 4bf7fa5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -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.
Expand Down
13 changes: 10 additions & 3 deletions _unittests/ut_faq/test_video.py
Expand Up @@ -47,7 +47,7 @@

class TestVideo(ExtTestCase):

def test_extract_video(self):
def test_extract_avideo(self):
fLOG(
__file__,
self._testMethodName,
Expand All @@ -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)

Expand Down
1 change: 1 addition & 0 deletions build_script.bat
Expand Up @@ -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%
1 change: 1 addition & 0 deletions requirements_conda.txt
@@ -1,3 +1,4 @@
basemap
bokeh
Cython
ipython
Expand Down

0 comments on commit 4bf7fa5

Please sign in to comment.