From ff43e748af82b1227c150fff11bb5738919206ed Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 25 Nov 2017 19:23:18 +0100 Subject: [PATCH] Set validated=1 when creating user in test --- hosting/test_forms.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hosting/test_forms.py b/hosting/test_forms.py index dd5ee94a..89ddb268 100644 --- a/hosting/test_forms.py +++ b/hosting/test_forms.py @@ -6,15 +6,13 @@ from .forms import HostingUserLoginForm, HostingUserSignupForm class HostingUserLoginFormTest(TestCase): def setUp(self): password = 'user_password' - self.user = mommy.make('CustomUser') - + self.user = mommy.make('CustomUser', validated=1) self.user.set_password(password) self.user.save() self.completed_data = { 'email': self.user.email, 'password': password } - self.incorrect_data = { 'email': 'test', }