Skip to content

Commit

Permalink
test(pacer): enhance test by adding subTest for round-robin asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
elisa-a-v committed Jan 9, 2025
1 parent e7e7d14 commit 00eabb5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cl/search/tests/test_pacer_bulk_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
)

0 comments on commit 00eabb5

Please sign in to comment.