test: ignore acceptable order change (#5727)

* test: ignore acceptable order change

* fix: address review comments
This commit is contained in:
Robert Sparks 2023-05-31 15:04:51 -05:00 committed by GitHub
parent 1ec403dc8c
commit c12f810dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ class SessionRequestTestCase(TestCase):
list(TimerangeName.objects.filter(name__in=['thursday-afternoon-early', 'thursday-afternoon-late']).values('name'))
)
self.assertFalse(sessions[0].joint_with_groups.count())
self.assertEqual(list(sessions[1].joint_with_groups.all()), [group3, group4])
self.assertEqual(set(sessions[1].joint_with_groups.all()), {group3, group4})
# Check whether the updated data is visible on the view page
r = self.client.get(redirect_url)