SIENTIAPDE-1314

Refactor workflow names to include 'subworkflow' prefix

- Updated the workflow definitions and calls in the predictions_batch, format_and_export_prediction, and prediction_process files to use the 'subworkflow' prefix for consistency.
- Adjusted corresponding test cases to reflect these changes in workflow execution calls.
This commit is contained in:
vitor-aignosi
2025-10-27 10:14:33 -03:00
parent be06e0a1b6
commit 22eee9dfba
5 changed files with 8 additions and 8 deletions

View File

@@ -170,7 +170,7 @@ async def test_run(workflow_mock, prediction_process):
)
workflow_mock.execute_child_workflow.assert_called_once_with(
'format_and_export_prediction',
'subworkflow.format_and_export_prediction',
{
'metadata': metadata,
'path_flag': 'continue',
@@ -730,7 +730,7 @@ async def test_path_flag_handler_continue(workflow_mock, prediction_process):
assert result is True
workflow_mock.execute_activity_method.assert_not_called()
workflow_mock.execute_child_workflow.assert_called_once_with(
'format_and_export_prediction',
'subworkflow.format_and_export_prediction',
{
'metadata': metadata,
'path_flag': path_flag,

View File

@@ -75,5 +75,5 @@ async def test_run(workflow_mock: AsyncMock, predictions_batch: PredictionsBatch
}
workflow_mock.execute_child_workflow.assert_has_calls(
[call('prediction_process', prediction_input)]
[call('subworkflow.prediction_process', prediction_input)]
)