mirror of https://github.com/snachodog/mybuddy.git
Ignore list items order in test
This commit is contained in:
parent
dbc5236ed5
commit
f4d15043d6
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue