profiles: avatar_url becomes avatar

This commit is contained in:
AdrienLSH
2024-02-08 15:58:13 +01:00
parent 613d74dd03
commit 36aee6c881
5 changed files with 13 additions and 13 deletions

View File

@ -7,7 +7,7 @@ class ProfileTest(TestCase):
def setUp(self):
self.user: User = User.objects.create(username='bozo', password='password')
self.user.save()
self.expected_response = {'avatar_url': '/static/avatars/default.avif', 'user_id': 1, 'username': 'bozo'}
self.expected_response = {'avatar': '/static/avatars/default.avif', 'user_id': 1, 'username': 'bozo'}
self.url = "/api/profiles/"
@ -15,4 +15,4 @@ class ProfileTest(TestCase):
response: HttpResponse = self.client.get(self.url + str(self.user.pk))
response_dict: dict = eval(response.content)
self.assertDictEqual(self.expected_response, response_dict)