From 6eded4708a2e3ef2dc149b649c376f2225d0c9c2 Mon Sep 17 00:00:00 2001 From: Kevin Zhang <54437031+kzdev420@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:23:42 -0400 Subject: [PATCH] 22370_add_filing_id_to_batch_processing_at_job (#2899) --- jobs/involuntary-dissolutions/involuntary_dissolutions.py | 1 + .../tests/unit/test_involuntary_dissolutions.py | 1 + 2 files changed, 2 insertions(+) diff --git a/jobs/involuntary-dissolutions/involuntary_dissolutions.py b/jobs/involuntary-dissolutions/involuntary_dissolutions.py index d4071c993c..02e0dde3ef 100644 --- a/jobs/involuntary-dissolutions/involuntary_dissolutions.py +++ b/jobs/involuntary-dissolutions/involuntary_dissolutions.py @@ -281,6 +281,7 @@ async def stage_3_process(app: Flask, qsm: QueueService): app.logger.debug(f'Created Involuntary Dissolution Filing with ID: {filing.id}') await put_filing_on_queue(filing.id, app, qsm) + batch_processing.filing_id = filing.id batch_processing.step = BatchProcessing.BatchProcessingStep.DISSOLUTION batch_processing.status = BatchProcessing.BatchProcessingStatus.COMPLETED app.logger.debug( diff --git a/jobs/involuntary-dissolutions/tests/unit/test_involuntary_dissolutions.py b/jobs/involuntary-dissolutions/tests/unit/test_involuntary_dissolutions.py index cea657f8bc..72ee6d0048 100644 --- a/jobs/involuntary-dissolutions/tests/unit/test_involuntary_dissolutions.py +++ b/jobs/involuntary-dissolutions/tests/unit/test_involuntary_dissolutions.py @@ -316,6 +316,7 @@ async def test_stage_3_process(app, session, test_name, status, step): await stage_3_process(app, qsm) if test_name == 'DISSOLVE_BUSINESS': mock_put_filing_on_queue.assert_called() + assert batch_processing.filing_id assert batch_processing.status == status assert batch_processing.step == step