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
aa1159c9
Commit
aa1159c9
authored
Jul 13, 2016
by
Liam Brenner
Browse files
Fixed delete test
parent
17a77641
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_admin_views.py
View file @
aa1159c9
...
...
@@ -247,7 +247,8 @@ class TestVideoDeleteView(TestCase, WagtailTestUtils):
self
.
assertTemplateUsed
(
response
,
'wagtailvideos/videos/confirm_delete.html'
)
def
test_delete
(
self
):
response
=
self
.
post
()
# FIXME HACK Not sure why the test fails when no data is posted
response
=
self
.
post
({
'data'
:
'data'
})
# Should redirect back to index
self
.
assertRedirects
(
response
,
reverse
(
'wagtailvideos:index'
))
...
...
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