Set validated=1 for user created in hosting.test_views.LoginViewTest

This commit is contained in:
PCoder 2017-11-25 19:44:19 +01:00
parent baf00b1a8b
commit ddf69accdf

View file

@ -457,7 +457,7 @@ class LoginViewTest(TestCase):
self.url = reverse('hosting:login') self.url = reverse('hosting:login')
self.view = LoginView self.view = LoginView
self.expected_template = 'hosting/login.html' 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.password = 'fake_password'
self.user.set_password(self.password) self.user.set_password(self.password)
self.user.save() self.user.save()