Ignore list items order in test

This commit is contained in:
Christopher C. Wells 2022-06-28 07:05:47 -07:00
parent dbc5236ed5
commit f4d15043d6
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ class TagsAPITestCase(TestBase.BabyBuddyAPITestCaseBase):
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(response.data["tags"], data["tags"])
note = models.Note.objects.get(pk=response.data["id"])
self.assertEqual(list(note.tags.names()), data["tags"])
self.assertCountEqual(list(note.tags.names()), data["tags"])
class TemperatureAPITestCase(TestBase.BabyBuddyAPITestCaseBase):