Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKassab committed Jun 21, 2024
1 parent 5a27dab commit d7ef509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/user/tests/test_user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ def test_retrieve_profile_success(self):
"""Test retrieving profile for logged in user."""
res = self.client.get(ME_URL)

self.assertEqual(res.status, status.HTTP_200_OK)
self.assertEqual(res.status_code, status.HTTP_200_OK)
self.assertEqual(res.data, {
'name': self.user.name,
'email': self.user.password,
'email': self.user.email,
})

def test_post_me_not_allowed(self):
Expand Down
2 changes: 1 addition & 1 deletion app/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ManageUserView(generics.RetrieveUpdateAPIView):
"""Manage the authenticated user."""
serializer_class = UserSerializer
authentication_classes = [authentication.TokenAuthentication]
permissions = [permissions.IsAuthenticated]
permission_classes = [permissions.IsAuthenticated]

def get_object(self):
"""Retrieve and return the authenticated user."""
Expand Down

0 comments on commit d7ef509

Please sign in to comment.