mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-15 10:43:15 +00:00
Correct omitted parameter in assertion
This commit is contained in:
parent
4f761136d4
commit
de3d22b8da
1 changed files with 2 additions and 2 deletions
|
|
@ -387,12 +387,12 @@ class TestDeleteFormSubmission(TestCase):
|
|||
self.form_page = Page.objects.get(url_path='/home/contact-us/')
|
||||
|
||||
def test_delete_submission_show_cofirmation(self):
|
||||
self.client.get(reverse(
|
||||
response = self.client.get(reverse(
|
||||
'wagtailforms:delete_submission',
|
||||
args=(self.form_page.id, FormSubmission.objects.first().id)
|
||||
))
|
||||
# Check show confirm page when HTTP method is GET
|
||||
self.assertTemplateUsed('wagtaiforms/confirm_delete')
|
||||
self.assertTemplateUsed(response, 'wagtailforms/confirm_delete.html')
|
||||
|
||||
# Check that the deletion has not happened with GET request
|
||||
self.assertEqual(FormSubmission.objects.count(), 2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue