these test are expecting a 403 forbidden as opposed to a 401 unauthorized this is likely due to an update
IsAuthenticated permission class in UpdateUser view, the view is protected by the authentication layer, and Django is not treating unauthenticated access as a 401 error but instead as a 403 due to permission checks.
these test are expecting a 403 forbidden as opposed to a 401 unauthorized this is likely due to an update IsAuthenticated permission class in UpdateUser view, the view is protected by the authentication layer, and Django is not treating unauthenticated access as a 401 error but instead as a 403 due to permission checks.