@@ -402,15 +402,13 @@ def test_invoke_options_from_dict():
402402 data = {"FunctionName" : "test-function" , "TimeoutSeconds" : 120 }
403403 options = ChainedInvokeOptions .from_dict (data )
404404 assert options .function_name == "test-function"
405- assert options .timeout_seconds == 120
406405
407406
408407def test_invoke_options_from_dict_required_only ():
409408 """Test ChainedInvokeOptions.from_dict with only required field."""
410409 data = {"FunctionName" : "test-function" }
411410 options = ChainedInvokeOptions .from_dict (data )
412411 assert options .function_name == "test-function"
413- assert options .timeout_seconds == 0
414412
415413
416414def test_context_options_from_dict ():
@@ -444,7 +442,7 @@ def test_callback_options_roundtrip():
444442
445443def test_invoke_options_roundtrip ():
446444 """Test ChainedInvokeOptions to_dict -> from_dict roundtrip."""
447- original = ChainedInvokeOptions (function_name = "test-func" , timeout_seconds = 120 )
445+ original = ChainedInvokeOptions (function_name = "test-func" )
448446 data = original .to_dict ()
449447 restored = ChainedInvokeOptions .from_dict (data )
450448 assert restored == original
@@ -498,12 +496,10 @@ def test_invoke_options_to_dict():
498496 """Test ChainedInvokeOptions.to_dict method."""
499497 options = ChainedInvokeOptions (
500498 function_name = "test_function" ,
501- timeout_seconds = 30 ,
502499 )
503500 result = options .to_dict ()
504501 expected = {
505502 "FunctionName" : "test_function" ,
506- "TimeoutSeconds" : 30 ,
507503 }
508504 assert result == expected
509505
@@ -512,7 +508,7 @@ def test_invoke_options_to_dict_minimal():
512508 """Test ChainedInvokeOptions.to_dict with minimal fields."""
513509 options = ChainedInvokeOptions (function_name = "test_function" )
514510 result = options .to_dict ()
515- assert result == {"FunctionName" : "test_function" , "TimeoutSeconds" : 0 }
511+ assert result == {"FunctionName" : "test_function" }
516512
517513
518514def test_context_options_to_dict ():
@@ -546,12 +542,11 @@ def test_invoke_options_from_dict_missing_function_name():
546542
547543def test_invoke_options_to_dict_complete ():
548544 """Test ChainedInvokeOptions.to_dict with all fields."""
549- options = ChainedInvokeOptions (function_name = "test_func" , timeout_seconds = 120 )
545+ options = ChainedInvokeOptions (function_name = "test_func" )
550546
551547 result = options .to_dict ()
552548
553549 assert result ["FunctionName" ] == "test_func"
554- assert result ["TimeoutSeconds" ] == 120
555550
556551
557552# =============================================================================
@@ -562,7 +557,7 @@ def test_invoke_options_to_dict_complete():
562557def test_operation_update_create_invoke_start ():
563558 """Test OperationUpdate.create_invoke_start method to cover line 545."""
564559 identifier = OperationIdentifier ("test-id" , "parent-id" )
565- invoke_options = ChainedInvokeOptions ("test-func" , 120 )
560+ invoke_options = ChainedInvokeOptions ("test-func" )
566561 update = OperationUpdate .create_invoke_start (identifier , "payload" , invoke_options )
567562 assert update .operation_id == "test-id"
568563
@@ -609,9 +604,7 @@ def test_operation_update_to_dict_complete():
609604 callback_options = CallbackOptions (
610605 timeout_seconds = 300 , heartbeat_timeout_seconds = 60
611606 )
612- chained_invoke_options = ChainedInvokeOptions (
613- function_name = "test_func" , timeout_seconds = 60
614- )
607+ chained_invoke_options = ChainedInvokeOptions (function_name = "test_func" )
615608
616609 update = OperationUpdate (
617610 operation_id = "op1" ,
@@ -639,7 +632,7 @@ def test_operation_update_to_dict_complete():
639632 "StepOptions" : {"NextAttemptDelaySeconds" : 30 },
640633 "WaitOptions" : {"WaitSeconds" : 60 },
641634 "CallbackOptions" : {"TimeoutSeconds" : 300 , "HeartbeatTimeoutSeconds" : 60 },
642- "ChainedInvokeOptions" : {"FunctionName" : "test_func" , "TimeoutSeconds" : 60 },
635+ "ChainedInvokeOptions" : {"FunctionName" : "test_func" },
643636 }
644637 assert result == expected
645638
@@ -884,9 +877,7 @@ def test_operation_update_complete_with_new_fields():
884877 callback_options = CallbackOptions (
885878 timeout_seconds = 300 , heartbeat_timeout_seconds = 60
886879 )
887- chained_invoke_options = ChainedInvokeOptions (
888- function_name = "test_func" , timeout_seconds = 60
889- )
880+ chained_invoke_options = ChainedInvokeOptions (function_name = "test_func" )
890881
891882 update = OperationUpdate (
892883 operation_id = "op1" ,
@@ -918,7 +909,7 @@ def test_operation_update_complete_with_new_fields():
918909 "StepOptions" : {"NextAttemptDelaySeconds" : 30 },
919910 "WaitOptions" : {"WaitSeconds" : 60 },
920911 "CallbackOptions" : {"TimeoutSeconds" : 300 , "HeartbeatTimeoutSeconds" : 60 },
921- "ChainedInvokeOptions" : {"FunctionName" : "test_func" , "TimeoutSeconds" : 60 },
912+ "ChainedInvokeOptions" : {"FunctionName" : "test_func" },
922913 }
923914 assert result == expected
924915
0 commit comments