@@ -234,17 +234,6 @@ def test_chat_generator_breakpoint_in_pipeline_agent():
234
234
assert e .state is not None
235
235
assert "messages" in e .state
236
236
assert e .results is not None
237
- except PipelineRuntimeError as e :
238
- # propagated exception to core Pipeline - assure that the cause is a PipelineBreakpointException
239
- if hasattr (e , "__cause__" ) and isinstance (e .__cause__ , BreakpointException ):
240
- original_exception = e .__cause__
241
- assert original_exception .component == "chat_generator"
242
- assert original_exception .state is not None
243
- assert "messages" in original_exception .state
244
- assert original_exception .results is not None
245
- else :
246
- # re-raise if it's a different PipelineRuntimeError - test failed
247
- raise
248
237
249
238
# verify that debug/state file was created
250
239
chat_generator_state_files = list (Path (debug_path ).glob ("database_agent_chat_generator_*.json" ))
@@ -269,17 +258,6 @@ def test_tool_breakpoint_in_pipeline_agent():
269
258
assert e .state is not None
270
259
assert "messages" in e .state
271
260
assert e .results is not None
272
- except PipelineRuntimeError as e :
273
- # propagated exception to core Pipeline - assure that the cause is a PipelineBreakpointException
274
- if hasattr (e , "__cause__" ) and isinstance (e .__cause__ , BreakpointException ):
275
- original_exception = e .__cause__
276
- assert original_exception .component == "tool_invoker"
277
- assert original_exception .state is not None
278
- assert "messages" in original_exception .state
279
- assert original_exception .results is not None
280
- else :
281
- # re-raise if it's a different PipelineRuntimeError - test failed
282
- raise
283
261
284
262
# verify that debug/state file was created
285
263
tool_invoker_state_files = list (Path (debug_path ).glob ("database_agent_tool_invoker_*.json" ))
@@ -306,16 +284,6 @@ def test_agent_breakpoint_chat_generator_and_resume_pipeline():
306
284
assert "messages" in e .state
307
285
assert e .results is not None
308
286
309
- except PipelineRuntimeError as e :
310
- if hasattr (e , "__cause__" ) and isinstance (e .__cause__ , BreakpointException ):
311
- original_exception = e .__cause__
312
- assert original_exception .component == "chat_generator"
313
- assert original_exception .state is not None
314
- assert "messages" in original_exception .state
315
- assert original_exception .results is not None
316
- else :
317
- raise
318
-
319
287
# verify that the state file was created
320
288
chat_generator_state_files = list (Path (debug_path ).glob ("database_agent_chat_generator_*.json" ))
321
289
assert len (chat_generator_state_files ) > 0 , f"No chat_generator state files found in { debug_path } "
@@ -368,16 +336,6 @@ def test_agent_breakpoint_tool_and_resume_pipeline():
368
336
assert "messages" in e .state
369
337
assert e .results is not None
370
338
371
- except PipelineRuntimeError as e :
372
- if hasattr (e , "__cause__" ) and isinstance (e .__cause__ , BreakpointException ):
373
- original_exception = e .__cause__
374
- assert original_exception .component == "tool_invoker"
375
- assert original_exception .state is not None
376
- assert "messages" in original_exception .state
377
- assert original_exception .results is not None
378
- else :
379
- raise
380
-
381
339
# verify that the state file was created
382
340
tool_invoker_state_files = list (Path (debug_path ).glob ("database_agent_tool_invoker_*.json" ))
383
341
assert len (tool_invoker_state_files ) > 0 , f"No tool_invoker state files found in { debug_path } "
0 commit comments