fixed regression introduced

This commit is contained in:
Sam
2021-02-02 11:46:43 +00:00
parent ec584b7aab
commit c8d433c3f9
20 changed files with 377 additions and 237 deletions

View File

@@ -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):