@@ -417,7 +417,7 @@ def test_should_handle_boto3_client_creation_with_custom_config():
417417
418418 # Assert - Verify boto3 client was called with correct parameters
419419 mock_boto3_client .assert_called_once_with (
420- "lambdainternal " ,
420+ "lambda " ,
421421 endpoint_url = "http://custom-endpoint:8080" ,
422422 region_name = "eu-west-1" ,
423423 )
@@ -442,7 +442,7 @@ def test_should_handle_boto3_client_creation_with_defaults():
442442
443443 # Assert - Verify boto3 client was called with default parameters
444444 mock_boto3_client .assert_called_once_with (
445- "lambdainternal " ,
445+ "lambda " ,
446446 endpoint_url = "http://127.0.0.1:3001" , # Default lambda_endpoint value
447447 region_name = "us-west-2" , # Default value
448448 )
@@ -467,30 +467,22 @@ def test_should_propagate_boto3_client_creation_exceptions():
467467 runner .start ()
468468
469469
470- def test_should_set_aws_data_path_during_start ():
471- """Test that start() sets AWS_DATA_PATH environment variable through public API."""
470+ def test_should_create_boto3_client_during_start ():
471+ """Test that start() creates boto3 client correctly through public API."""
472472 # Arrange
473473 web_config = WebServiceConfig (host = "localhost" , port = 5000 )
474474 runner_config = WebRunnerConfig (web_service = web_config )
475475 runner = WebRunner (runner_config )
476476
477- # Mock aws_durable_execution_sdk_python module path
478- mock_package_path = "/mock/path/to/aws_durable_execution_sdk_python"
479- expected_data_path = f"{ mock_package_path } /botocore/data"
480-
481- with (
482- patch ("os.path.dirname" ) as mock_dirname ,
483- patch ("boto3.client" ) as mock_boto3_client ,
484- ):
485- mock_dirname .return_value = mock_package_path
477+ with patch ("boto3.client" ) as mock_boto3_client :
486478 mock_client = Mock ()
487479 mock_boto3_client .return_value = mock_client
488480
489481 # Act - Test public behavior
490482 runner .start ()
491483
492- # Assert - Verify environment variable was set
493- assert os . environ [ "AWS_DATA_PATH" ] == expected_data_path
484+ # Assert - Verify boto3 client was created
485+ mock_boto3_client . assert_called_once ()
494486
495487 # Verify public behavior works
496488 runner .stop ()
@@ -773,7 +765,7 @@ def test_should_pass_correct_boto3_client_to_lambda_invoker():
773765
774766 # Assert - Verify boto3 client was created with correct parameters
775767 mock_boto3_client .assert_called_once_with (
776- "lambdainternal " ,
768+ "lambda " ,
777769 endpoint_url = "http://test-endpoint:7777" ,
778770 region_name = "ap-southeast-2" ,
779771 )
0 commit comments