diff --git a/cl/search/tests/test_pacer_bulk_fetch.py b/cl/search/tests/test_pacer_bulk_fetch.py index c5ee60e6e6..ec5219a65a 100644 --- a/cl/search/tests/test_pacer_bulk_fetch.py +++ b/cl/search/tests/test_pacer_bulk_fetch.py @@ -240,8 +240,12 @@ def track_rounds_side_effect(remaining_courts, options, is_last_round): court_id = queue.recap_document.docket_entry.docket.court_id court_ids_this_round.append(court_id) - self.assertEqual( - len(court_ids_this_round), - len(set(court_ids_this_round)), - f"Round {round_index} had duplicate courts: {court_ids_this_round}", - ) + with self.subTest( + court_ids_this_round=court_ids_this_round, + round_index=round_index, + ): + self.assertEqual( + len(court_ids_this_round), + len(set(court_ids_this_round)), + f"Round {round_index} had duplicate courts: {court_ids_this_round}", + )