added custom user endpoints

This commit is contained in:
Sam
2021-01-25 12:15:11 +00:00
parent b2c857878b
commit f94d822d5e
6 changed files with 259 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ class ProductViewSetTest(APITestCase):
self.password = ''.join(random.choices(string.ascii_uppercase, k = 10))
self.user = CustomUserFactory(password=self.password)
# user not authenticated
# anon user
def test_anon_user_cannot_create_instance(self):
"""Not logged-in user cannot create new instance
"""