Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
YashSahsani committed Jun 23, 2024
1 parent e493a2c commit 21ac671
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Auth/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ def test_post_signup_failure(self):
'password1': 'testpassword',
'password2': 'testpassword2'
})
self.assertEqual(response.status_code, 302)
self.assertRedirects(response, reverse('Auth:signup'))
messages_list = list(messages.get_messages(response.wsgi_request))
self.assertEqual(len(messages_list), 1)
self.assertEqual(str(messages_list[0]), 'Please check your inputs')
self.assertEqual(response.status_code, 400)
self.assertTemplateUsed(response, 'Auth/signup.html')
self.assertIsInstance(response.context['form'], SignupForm)

0 comments on commit 21ac671

Please sign in to comment.