bounswe / bounswe2022group4

6 stars 3 forks source link

Backend: profilepage tests #435

Closed MercerFrey closed 1 year ago

MercerFrey commented 1 year ago

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" .

oguzhantok commented 1 year ago

I have reviewed the relevant changes, tests look well. Thanks @MercerFrey!