From ddf69accdf87f9ac8c1e37d3d7674d3e7f25b2ce Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 25 Nov 2017 19:44:19 +0100 Subject: [PATCH] Set validated=1 for user created in hosting.test_views.LoginViewTest --- hosting/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/test_views.py b/hosting/test_views.py index 944d0664..9b1b1572 100644 --- a/hosting/test_views.py +++ b/hosting/test_views.py @@ -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()