It adds tests for the GET and PUT endpoints of the ProfilePage. I discovered that it was unnecessary to get user from the database. Because Django already authenticates the user and appends it to the request. We can easily access it with "request.user" .
It adds tests for the GET and PUT endpoints of the ProfilePage. I discovered that it was unnecessary to get user from the database. Because Django already authenticates the user and appends it to the request. We can easily access it with "request.user" .