From 5992909a6186aa8e0dbdc7d3ef87e9f17953b184 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 21 Aug 2025 09:27:57 -0300 Subject: [PATCH] SIENTIAPDE-1199 fix: add metadata handling in schedule configuration tests - Enhanced the test cases in test_formatters.py and test_temporal_manager.py to include metadata in the schedule configuration inputs. - This change improves the accuracy and traceability of the tests by ensuring that metadata is properly accounted for in the test scenarios. --- tests/orchestrator/activities/test_formatters.py | 3 ++- tests/orchestrator/activities/test_temporal_manager.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/orchestrator/activities/test_formatters.py b/tests/orchestrator/activities/test_formatters.py index 950c70f..6fd32fb 100644 --- a/tests/orchestrator/activities/test_formatters.py +++ b/tests/orchestrator/activities/test_formatters.py @@ -354,7 +354,8 @@ async def test_format_schedule_config(formatters): "updated_at": "2021-01-01"}, {"namespace": "test_namespace2", "schedule_name": "test2", "updated_at": "2021-01-02"} - ] + ], + **metadata } result = await formatters.format_schedule_config(input_data) diff --git a/tests/orchestrator/activities/test_temporal_manager.py b/tests/orchestrator/activities/test_temporal_manager.py index dbb1258..ab658ae 100644 --- a/tests/orchestrator/activities/test_temporal_manager.py +++ b/tests/orchestrator/activities/test_temporal_manager.py @@ -76,7 +76,8 @@ async def test_normalize_schedules(temporal_manager): "orchestrated_schedules": { "scouter": {"test-scouter": "2021-01-01"}, "laborious": {"test-schedule-id1": "2021-01-01"} - } + }, + **metadata } temporal_manager.temporal_clients['scouter'].list_schedules = AsyncMock(