@@ -88,44 +88,40 @@ def test_decision_events_initialization(self):
8888 decision_events = DecisionEvents ()
8989
9090 assert decision_events .get_events () == []
91- assert decision_events .get_decision_events () == []
9291 assert decision_events .get_markers () == []
9392 assert not decision_events .is_replay ()
9493 assert decision_events .replay_current_time_milliseconds is None
9594 assert decision_events .next_decision_event_id is None
9695
9796 def test_decision_events_with_data (self ):
9897 """Test DecisionEvents with actual data."""
99- events = [create_mock_history_event (1 , "decision_task_started" )]
100- decision_events = [create_mock_history_event (2 , "decision_task_completed" )]
98+ events = [create_mock_history_event (1 , "decision_task_started" ), create_mock_history_event (2 , "decision_task_completed" )]
10199 markers = [create_mock_history_event (3 , "marker_recorded" )]
102100
103101 decision_events_obj = DecisionEvents (
104102 events = events ,
105- decision_events = decision_events ,
106103 markers = markers ,
107104 replay = True ,
108105 replay_current_time_milliseconds = 123456 ,
109106 next_decision_event_id = 4
110107 )
111108
112109 assert decision_events_obj .get_events () == events
113- assert decision_events_obj .get_decision_events () == decision_events
114110 assert decision_events_obj .get_markers () == markers
115111 assert decision_events_obj .is_replay ()
116112 assert decision_events_obj .replay_current_time_milliseconds == 123456
117113 assert decision_events_obj .next_decision_event_id == 4
118114
119- def test_get_optional_decision_event (self ):
120- """Test retrieving optional decision event by ID."""
115+ def test_get_event_by_id (self ):
116+ """Test retrieving event by ID."""
121117 event1 = create_mock_history_event (1 , "decision_task_started" )
122118 event2 = create_mock_history_event (2 , "decision_task_completed" )
123119
124- decision_events = DecisionEvents (decision_events = [event1 , event2 ])
120+ decision_events = DecisionEvents (events = [event1 , event2 ])
125121
126- assert decision_events .get_optional_decision_event (1 ) == event1
127- assert decision_events .get_optional_decision_event (2 ) == event2
128- assert decision_events .get_optional_decision_event (999 ) is None
122+ assert decision_events .get_event_by_id (1 ) == event1
123+ assert decision_events .get_event_by_id (2 ) == event2
124+ assert decision_events .get_event_by_id (999 ) is None
129125
130126
131127
@@ -374,10 +370,8 @@ async def test_complex_workflow_scenario(self, mock_client):
374370 first_decision = all_decisions [0 ]
375371 assert len (first_decision .get_events ()) == 6 # Events 1-6
376372 assert len (first_decision .get_markers ()) == 1 # Event 4
377- assert len (first_decision .get_decision_events ()) == 3 # Events 2, 3, 5
378373
379374 # Second decision should be simpler
380375 second_decision = all_decisions [1 ]
381376 assert len (second_decision .get_events ()) == 2 # Events 7-8
382- assert len (second_decision .get_markers ()) == 0
383- assert len (second_decision .get_decision_events ()) == 0
377+ assert len (second_decision .get_markers ()) == 0
0 commit comments