Commit aa1159c9 authored by Liam Brenner's avatar Liam Brenner
Browse files

Fixed delete test

parent 17a77641
......@@ -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'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment