Browse Source

Does not have to be a super_user.

feature/bike-tracking
Drew Larson 8 years ago
parent
commit
2787578c0e
  1. 2
      bikeshop_project/bike/tests.py

2
bikeshop_project/bike/tests.py

@ -17,7 +17,7 @@ from unittest.mock import patch
class TestBikeApi(TestCase): class TestBikeApi(TestCase):
def setUp(self): 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): def test_endpoint_exists(self):
client = APIClient() client = APIClient()

Loading…
Cancel
Save