From 2787578c0e9d8adb96bd7edbdaff35ec7ca4dd84 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sat, 4 Feb 2017 08:27:15 -0600 Subject: [PATCH] Does not have to be a super_user. --- bikeshop_project/bike/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bikeshop_project/bike/tests.py b/bikeshop_project/bike/tests.py index f5c79e3..0401c1b 100644 --- a/bikeshop_project/bike/tests.py +++ b/bikeshop_project/bike/tests.py @@ -17,7 +17,7 @@ from unittest.mock import patch class TestBikeApi(TestCase): def setUp(self): - self.user = mommy.make('registration.CustomUser', is_admin=True, is_superuser=True) + self.user = mommy.make('registration.CustomUser', is_admin=True) def test_endpoint_exists(self): client = APIClient()