Skip to content

Commit

Permalink
22370_add_filing_id_to_batch_processing_at_job (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzdev420 authored Aug 8, 2024
1 parent 1755633 commit 6eded47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions jobs/involuntary-dissolutions/involuntary_dissolutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6eded47

Please sign in to comment.