Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test to check SECURITY_LOGIN_WITHOUT_CONFIRMATION feature

  • Loading branch information...
commit d88299fc9b4a407c873e36bc21fcb02444050a02 1 parent ce439b7
@mattupstate authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/configured_tests.py
View
10 tests/configured_tests.py
@@ -352,6 +352,16 @@ def test_confirm_email_of_user_different_than_current_user(self):
self.assertIn(msg, r.data)
self.assertIn('Hello %s' % e2, r.data)
+ def test_login_unconfirmed_user_when_login_without_confirmation_is_true(self):
+ e = 'dude@lp.com'
+ p = 'password'
+ data = dict(email=e, password=p, password_confirm=p)
+ r = self._post('/register', data=data, follow_redirects=True)
+ self.assertIn(e, r.data)
+ self.client.get('/logout')
+ r = self.authenticate(email=e)
+ self.assertIn(e, r.data)
+
class RecoverableTests(SecurityTest):
Please sign in to comment.
Something went wrong with that request. Please try again.