fixed regression introduced
This commit is contained in:
@@ -27,7 +27,7 @@ class CompanyViewSetTest(APITestCase):
|
||||
self.model = Company
|
||||
# create user
|
||||
self.password = ''.join(random.choices(string.ascii_uppercase, k = 10))
|
||||
self.user = CustomUserFactory(password=self.password)
|
||||
self.user = CustomUserFactory(email="test@mail.com", password=self.password, is_active=True)
|
||||
|
||||
# user not authenticated
|
||||
def test_not_logged_user_cannot_create_instance(self):
|
||||
|
||||
Reference in New Issue
Block a user