diff --git a/hypha/apply/api/v1/screening/tests/test_views.py b/hypha/apply/api/v1/screening/tests/test_views.py index 54fe3c359455bdfa636488f0b60d17b4e9eba53a..33c1e1ae15b5f048ec354dff7252aef4ca3f0524 100644 --- a/hypha/apply/api/v1/screening/tests/test_views.py +++ b/hypha/apply/api/v1/screening/tests/test_views.py @@ -131,12 +131,9 @@ class SubmissionScreeningStatusViewSetTests(APITestCase): self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(len(response.json()), 2) - self.assertEqual(response.json()[0]['id'], self.yes_screening_status.id) - self.assertEqual(response.json()[0]['title'], self.yes_screening_status.title) - self.assertEqual(response.json()[0]['yes'], self.yes_screening_status.yes) - self.assertEqual(response.json()[0]['default'], self.yes_screening_status.default) - - self.assertEqual(response.json()[1]['id'], self.yes_default_screening_status.id) + possible_ids = [self.yes_screening_status.id, self.yes_default_screening_status.id] + self.assertIn(response.json()[0]['id'], possible_ids) + self.assertIn(response.json()[1]['id'], possible_ids) def test_staff_can_list_submission_screening_statuses(self): user = StaffFactory()