@@ -53,18 +53,6 @@ def test_error_info_factory_methods(self):
5353 assert extra_error .domain == "evalprotocol.io"
5454 assert extra_error .metadata == {"steps" : 10 , "reward" : 0.8 }
5555
56- # Test rollout_error
57- rollout_error = ErrorInfo .rollout_error ({"error_code" : "E001" })
58- assert rollout_error .reason == "ROLLOUT_ERROR"
59- assert rollout_error .domain == "evalprotocol.io"
60- assert rollout_error .metadata == {"error_code" : "E001" }
61-
62- # Test stopped_reason
63- stopped_error = ErrorInfo .stopped_reason ("user_request" )
64- assert stopped_error .reason == "STOPPED"
65- assert stopped_error .domain == "evalprotocol.io"
66- assert stopped_error .metadata ["reason" ] == "user_request"
67-
6856
6957class TestStatusModel :
7058 """Test the AIP-193 compatible Status model."""
@@ -121,12 +109,6 @@ def test_status_creation_methods(self):
121109 assert error_status_with_info .details [0 ]["domain" ] == "evalprotocol.io"
122110 assert error_status_with_info .details [0 ]["metadata" ] == extra_info
123111
124- # Test stopped status
125- stopped_status = Status .rollout_stopped ("User requested stop" )
126- assert stopped_status .code == Status .Code .CANCELLED
127- assert stopped_status .message == "User requested stop"
128- assert stopped_status .details == []
129-
130112 # Test with termination reason
131113 termination_status = Status .rollout_finished (TerminationReason .CONTROL_PLANE_SIGNAL )
132114 assert termination_status .code == Status .Code .FINISHED
@@ -173,13 +155,6 @@ def test_status_helper_methods(self):
173155 assert error_status .is_error () is True
174156 assert error_status .is_stopped () is False
175157
176- # Test is_stopped
177- stopped_status = Status .rollout_stopped ("Test stop" )
178- assert stopped_status .is_running () is False
179- assert stopped_status .is_finished () is False
180- assert stopped_status .is_error () is False
181- assert stopped_status .is_stopped () is True
182-
183158 def test_get_termination_reason (self ):
184159 """Test extracting termination reason from status details."""
185160
@@ -313,11 +288,6 @@ def test_status_transitions(self):
313288 assert row .rollout_status .is_error ()
314289 assert not row .rollout_status .is_finished ()
315290
316- # Transition to stopped
317- row .rollout_status = Status .rollout_stopped ("User requested stop" )
318- assert row .rollout_status .is_stopped ()
319- assert not row .rollout_status .is_error ()
320-
321291 def test_termination_reason_integration (self ):
322292 """Test integration of termination reason with status."""
323293 row = EvaluationRow (messages = [])
0 commit comments