Does not have to be a super_user.

This commit is contained in:
Drew Larson
2017-05-23 19:27:57 -06:00
parent 1f6202be56
commit 2787578c0e
+1 -1
View File
@@ -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()