Commit f3d67735 authored by harkamalsi's avatar harkamalsi
Browse files

Fixing syntax error

parent ca6bfb3f
Pipeline #129311 failed with stages
in 39 seconds
......@@ -129,9 +129,9 @@ class TestPermissions(APITestCase):
request = APIRequestFactory().get("/")
athlete = User.objects.get(username="athlete")
workout = Workout.objects.get(name="test1")
)
self.assertTrue(resp)
def test_IsCoachAndvisibleToCoach(self):
request = APIRequestFactory().get("/")
coach = User.objects.get(username="coach")
......@@ -179,10 +179,8 @@ class TestPermissions(APITestCase):
request.data = {"workout": "http://127.0.0.1:8000/api/workouts/1/"}
has_perm = IsOwnerOfWorkout.has_permission(self, request=request, view=None)
self.assertTrue(has_perm)
def test_IsWorkoutOwnerObj(self):
request = APIRequestFactory().get("/")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment