fixed regression introduced
This commit is contained in:
@@ -29,7 +29,7 @@ class ProductViewSetTest(APITestCase):
|
||||
self.model = Product
|
||||
# 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)
|
||||
|
||||
# anon user
|
||||
def test_anon_user_cannot_create_instance(self):
|
||||
|
||||
Reference in New Issue
Block a user