mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-14 18:23:14 +00:00
Remove unused local var and Fix some indentations
This commit is contained in:
parent
e819de91b5
commit
4f761136d4
1 changed files with 4 additions and 7 deletions
|
|
@ -387,11 +387,10 @@ class TestDeleteFormSubmission(TestCase):
|
|||
self.form_page = Page.objects.get(url_path='/home/contact-us/')
|
||||
|
||||
def test_delete_submission_show_cofirmation(self):
|
||||
reponse = self.client.get(reverse(
|
||||
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')
|
||||
|
||||
|
|
@ -402,8 +401,7 @@ class TestDeleteFormSubmission(TestCase):
|
|||
response = self.client.post(reverse(
|
||||
'wagtailforms:delete_submission',
|
||||
args=(self.form_page.id, FormSubmission.objects.first().id)
|
||||
)
|
||||
)
|
||||
))
|
||||
|
||||
# Check that the submission is gone
|
||||
self.assertEqual(FormSubmission.objects.count(), 1)
|
||||
|
|
@ -417,8 +415,7 @@ class TestDeleteFormSubmission(TestCase):
|
|||
response = self.client.post(reverse(
|
||||
'wagtailforms:delete_submission',
|
||||
args=(self.form_page.id, FormSubmission.objects.first().id)
|
||||
)
|
||||
)
|
||||
))
|
||||
|
||||
# Check that the user recieved a 403 response
|
||||
self.assertEqual(response.status_code, 403)
|
||||
|
|
|
|||
Loading…
Reference in a new issue