@@ -214,15 +214,15 @@ async def test_invoke_tool(self, mock_post):
214
214
mock_post .return_value .__aenter__ .return_value = mock_response
215
215
216
216
result = await _invoke_tool (
217
- "http://localhost:8000 " ,
217
+ "http://localhost:5000 " ,
218
218
aiohttp .ClientSession (),
219
219
"tool_name" ,
220
220
{"input" : "data" },
221
221
{},
222
222
)
223
223
224
224
mock_post .assert_called_once_with (
225
- "http://localhost:8000 /api/tool/tool_name/invoke" ,
225
+ "http://localhost:5000 /api/tool/tool_name/invoke" ,
226
226
json = {"input" : "data" },
227
227
headers = {},
228
228
)
@@ -241,15 +241,15 @@ async def test_invoke_tool_unsecure_with_auth(self, mock_post):
241
241
match = "Sending ID token over HTTP. User data may be exposed. Use HTTPS for secure communication." ,
242
242
):
243
243
result = await _invoke_tool (
244
- "http://localhost:8000 " ,
244
+ "http://localhost:5000 " ,
245
245
aiohttp .ClientSession (),
246
246
"tool_name" ,
247
247
{"input" : "data" },
248
248
{"my_test_auth" : lambda : "fake_id_token" },
249
249
)
250
250
251
251
mock_post .assert_called_once_with (
252
- "http://localhost:8000 /api/tool/tool_name/invoke" ,
252
+ "http://localhost:5000 /api/tool/tool_name/invoke" ,
253
253
json = {"input" : "data" },
254
254
headers = {"my_test_auth_token" : "fake_id_token" },
255
255
)
@@ -267,15 +267,15 @@ async def test_invoke_tool_secure_with_auth(self, mock_post):
267
267
with warnings .catch_warnings ():
268
268
warnings .simplefilter ("error" )
269
269
result = await _invoke_tool (
270
- "https://localhost:8000 " ,
270
+ "https://localhost:5000 " ,
271
271
session ,
272
272
"tool_name" ,
273
273
{"input" : "data" },
274
274
{"my_test_auth" : lambda : "fake_id_token" },
275
275
)
276
276
277
277
mock_post .assert_called_once_with (
278
- "https://localhost:8000 /api/tool/tool_name/invoke" ,
278
+ "https://localhost:5000 /api/tool/tool_name/invoke" ,
279
279
json = {"input" : "data" },
280
280
headers = {"my_test_auth_token" : "fake_id_token" },
281
281
)
0 commit comments