Skip to content

Commit

Permalink
Correction d'un test suite à la mise à jour de django_rest_framework
Browse files Browse the repository at this point in the history
django_rest_framework 3.15.0 a remplacé les OrderedDict par des dict puisque
ceux-ci sont maintenant ordonnées depuis Python 3.6
cf. encode/django-rest-framework#8964
  • Loading branch information
Situphen committed Sep 28, 2024
1 parent 8af73fa commit 703815c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion zds/mp/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ def test_expand_list_of_private_topics_for_author(self):
response = self.client.get(reverse("api:mp:list") + "?expand=author")
self.assertEqual(response.status_code, status.HTTP_200_OK)
author = response.data.get("results")[0].get("author")
self.assertIsInstance(author, OrderedDict)
self.assertEqual(author.get("username"), self.profile.user.username)
self.assertEqual(author.get("avatar_url"), self.profile.get_avatar_url())

Expand Down

0 comments on commit 703815c

Please sign in to comment.