Set validated=1 for user created in hosting.test_views.LoginViewTest
This commit is contained in:
parent
baf00b1a8b
commit
ddf69accdf
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ class LoginViewTest(TestCase):
|
|||
self.url = reverse('hosting:login')
|
||||
self.view = LoginView
|
||||
self.expected_template = 'hosting/login.html'
|
||||
self.user = mommy.make('membership.CustomUser')
|
||||
self.user = mommy.make('membership.CustomUser', validated=1)
|
||||
self.password = 'fake_password'
|
||||
self.user.set_password(self.password)
|
||||
self.user.save()
|
||||
|
|
Loading…
Reference in a new issue