@@ -127,14 +127,14 @@ async def test_setup_mcp_mode_tool_registration_error(
127127 await setup_mcp_mode (mock_mcp , mock_args )
128128 assert 'Tool registration failed' in str (exc_info .value )
129129
130- @patch ('sys.argv' , ['test' , '--endpoint' , ' https://test.example.com' ])
130+ @patch ('sys.argv' , ['test' , 'https://test.example.com' ])
131131 def test_parse_args_default (self ):
132132 """Test parse_args with default arguments."""
133133 args = parse_args ()
134134 assert args .endpoint == 'https://test.example.com'
135135
136136 @patch ('aws_mcp_proxy.server.asyncio.run' )
137- @patch ('sys.argv' , ['test' , '--endpoint' , ' https://test.example.com' ])
137+ @patch ('sys.argv' , ['test' , 'https://test.example.com' ])
138138 def test_main_function (self , mock_asyncio_run ):
139139 """Test that main function runs server correctly."""
140140 # Arrange
@@ -147,7 +147,7 @@ def test_main_function(self, mock_asyncio_run):
147147 mock_asyncio_run .assert_called_once ()
148148
149149 @patch ('aws_mcp_proxy.server.asyncio.run' )
150- @patch ('sys.argv' , ['test' , '--endpoint' , ' https://test.example.com' ])
150+ @patch ('sys.argv' , ['test' , 'https://test.example.com' ])
151151 def test_main_error_handling (self , mock_asyncio_run ):
152152 """Test that main function handles errors gracefully."""
153153 # Arrange
0 commit comments