Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
04cbb21d
Commit
04cbb21d
authored
Aug 15, 2016
by
Seb
Browse files
Fixed where patched method being assigned. Added mock as tox dependancy
parent
883b6b8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_admin_views.py
View file @
04cbb21d
...
...
@@ -106,9 +106,9 @@ class TestVideoAddView(TestCase, WagtailTestUtils):
root_collection
=
Collection
.
get_first_root_node
()
self
.
assertEqual
(
video
.
collection
,
root_collection
)
@
patch
(
'wagtailvideos.
uti
ls.ffmpeg_installed'
)
def
test_add_no_ffmpeg
(
self
,
mock_
ffmpeg
):
mock_
ffmpeg
.
return_value
=
False
@
patch
(
'wagtailvideos.
mode
ls.ffmpeg_installed'
)
def
test_add_no_ffmpeg
(
self
,
ffmpeg
_installed
):
ffmpeg
_installed
.
return_value
=
False
video_file
=
create_test_video_file
()
title
=
'no_ffmpeg'
...
...
@@ -125,6 +125,7 @@ class TestVideoAddView(TestCase, WagtailTestUtils):
videos
=
Video
.
objects
.
filter
(
title
=
title
)
self
.
assertEqual
(
videos
.
count
(),
1
)
video
=
videos
.
first
()
self
.
assertFalse
(
video
.
thumbnail
)
self
.
assertFalse
(
video
.
duration
)
...
...
tox.ini
View file @
04cbb21d
...
...
@@ -16,6 +16,7 @@ basepython =
py35:
python3.5
deps
=
mock
dj18:
Django~=1.8.0
dj19:
Django~=1.9.0
wt13:
wagtail~=1.3.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment