Set validated=1 when creating user in test
This commit is contained in:
		
					parent
					
						
							
								1dc5bb9bc8
							
						
					
				
			
			
				commit
				
					
						ff43e748af
					
				
			
		
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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',
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue