Skip to content

Commit

Permalink
test(api): Test that PacerFetchQueues were updated with their corresp…
Browse files Browse the repository at this point in the history
…onding docket id after fetching
  • Loading branch information
elisa-a-v committed Nov 18, 2024
1 parent 8c449eb commit 5e034bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cl/recap/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ def test_fetch_docket_by_docket_number(
result.get()

fq.refresh_from_db()
self.assertEqual(fq.docket, self.docket)
self.assertEqual(fq.status, PROCESSING_STATUS.SUCCESSFUL)
rds = RECAPDocument.objects.all()
self.assertEqual(rds.count(), 1)
Expand All @@ -836,6 +837,7 @@ def test_fetch_docket_by_pacer_case_id(
result = do_pacer_fetch(fq)
result.get()
fq.refresh_from_db()
self.assertEqual(fq.docket, self.docket)
self.assertEqual(fq.status, PROCESSING_STATUS.SUCCESSFUL)
rds = RECAPDocument.objects.all()
self.assertEqual(rds.count(), 1)
Expand Down Expand Up @@ -872,6 +874,8 @@ def test_fetch_docket_send_alert(
result.get()
self.assertEqual(len(mail.outbox), 1)
self.assertIn(fakes.CASE_NAME, mail.outbox[0].subject)
fq.refresh_from_db()
self.assertEqual(fq.docket, self.docket)


@mock.patch("cl.recap.api_serializers.get_or_cache_pacer_cookies")
Expand Down

0 comments on commit 5e034bf

Please sign in to comment.