@@ -968,9 +968,7 @@ def _fake_history():
968968 timestamp = started_at + timedelta (seconds = 5 ),
969969 task_scheduled_id = 4 ,
970970 failure_details = dt_task .FailureDetails (
971- "activity failed" , "RuntimeError" , "activity details" ),
972- reason = "activity failed" ,
973- details = "activity details" ),
971+ "activity failed" , "RuntimeError" , "activity stack trace" )),
974972 dt_history .SubOrchestrationInstanceCreatedEvent (
975973 event_id = 6 ,
976974 timestamp = started_at + timedelta (seconds = 6 ),
@@ -980,11 +978,7 @@ def _fake_history():
980978 dt_history .SubOrchestrationInstanceFailedEvent (
981979 event_id = 7 ,
982980 timestamp = started_at + timedelta (seconds = 7 ),
983- task_scheduled_id = 6 ,
984- failure_details = dt_task .FailureDetails (
985- "child failed" , "RuntimeError" , "child details" ),
986- reason = "child failed" ,
987- details = "child details" ),
981+ task_scheduled_id = 6 ),
988982 dt_history .ExecutionCompletedEvent (
989983 event_id = 8 ,
990984 timestamp = started_at + timedelta (seconds = 8 ),
@@ -994,7 +988,7 @@ def _fake_history():
994988
995989
996990@pytest .mark .parametrize ("show_history_output" , [False , True ])
997- async def test_get_status_projects_v1_history (show_history_output ):
991+ async def test_get_status_projects_available_v1_history (show_history_output ):
998992 client = _make_client ()
999993 try :
1000994 history_mock = AsyncMock (return_value = _fake_history ())
@@ -1039,14 +1033,16 @@ async def test_get_status_projects_v1_history(show_history_output):
10391033 assert completed ["ScheduledTime" ] == (
10401034 "2026-01-01T00:00:01.000000Z" )
10411035 task_failed = events_by_type ["TaskFailed" ]
1042- assert task_failed ["Reason" ] == "activity failed"
1043- assert task_failed ["Details" ] == "activity details"
10441036 assert task_failed ["FailureDetails" ]["ErrorMessage" ] == (
10451037 "activity failed" )
1038+ assert task_failed ["FailureDetails" ]["StackTrace" ] == (
1039+ "activity stack trace" )
1040+ assert "Reason" not in task_failed
1041+ assert "Details" not in task_failed
10461042 child_failed = events_by_type ["SubOrchestrationInstanceFailed" ]
1047- assert child_failed [ "Reason" ] == "child failed"
1048- assert child_failed [ "Details" ] == "child details"
1049- assert child_failed [ "FailureDetails" ][ "ErrorMessage" ] == "child failed"
1043+ assert "Reason" not in child_failed
1044+ assert "Details" not in child_failed
1045+ assert "FailureDetails" not in child_failed
10501046 execution_completed = events_by_type ["ExecutionCompleted" ]
10511047 assert execution_completed ["OrchestrationStatus" ] == "Completed"
10521048 if show_history_output :
0 commit comments