Skip to content

Commit

Permalink
Fix test for submission submit success
Browse files Browse the repository at this point in the history
  • Loading branch information
theskumar committed Oct 23, 2023
1 parent 299f521 commit e806421
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hypha/apply/funds/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ def submit_form(
response = page.serve(request)

if not ignore_errors:
# Check the data we submit is correct
self.assertNotContains(response, "errors")
# check it is redirected
self.assertEqual(response.status_code, 302)
# check "success" is present in the redirect url location
self.assertIn("success", response.url)
return response

def test_workflow_and_draft(self):
Expand Down

0 comments on commit e806421

Please sign in to comment.