mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
fix: remove syntax errors from test files caused by sed
Fixed syntax errors in test files that were introduced by batch sed replacement: - test_tools_with_schemas.py: Removed leftover broken comments and closing brace - test_mcp_json_schema.py: Removed all instances of broken comment blocks The sed command left remnants that broke Python syntax.
This commit is contained in:
parent
d804e37e01
commit
7a823bc280
2 changed files with 6 additions and 29 deletions
|
|
@ -123,10 +123,7 @@ class TestMCPSchemaPreservation:
|
|||
mcp_endpoint=dict(uri=uri),
|
||||
)
|
||||
|
||||
# Authorization now passed as request body parameter
|
||||
# Removed auth_headers - using authorization parameter instead
|
||||
# (no longer needed)
|
||||
}
|
||||
|
||||
|
||||
# List runtime tools
|
||||
response = llama_stack_client.tool_runtime.list_tools(
|
||||
|
|
@ -166,10 +163,7 @@ class TestMCPSchemaPreservation:
|
|||
provider_id="model-context-protocol",
|
||||
mcp_endpoint=dict(uri=uri),
|
||||
)
|
||||
# Authorization now passed as request body parameter
|
||||
# Removed auth_headers - using authorization parameter instead
|
||||
# (no longer needed)
|
||||
}
|
||||
|
||||
|
||||
# List tools
|
||||
response = llama_stack_client.tool_runtime.list_tools(
|
||||
|
|
@ -216,10 +210,7 @@ class TestMCPSchemaPreservation:
|
|||
mcp_endpoint=dict(uri=uri),
|
||||
)
|
||||
|
||||
# Authorization now passed as request body parameter
|
||||
# Removed auth_headers - using authorization parameter instead
|
||||
# (no longer needed)
|
||||
}
|
||||
|
||||
|
||||
response = llama_stack_client.tool_runtime.list_tools(
|
||||
tool_group_id=test_toolgroup_id,
|
||||
|
|
@ -263,10 +254,7 @@ class TestMCPToolInvocation:
|
|||
mcp_endpoint=dict(uri=uri),
|
||||
)
|
||||
|
||||
# Authorization now passed as request body parameter
|
||||
# Removed auth_headers - using authorization parameter instead
|
||||
# (no longer needed)
|
||||
}
|
||||
|
||||
|
||||
# List tools to populate the tool index
|
||||
llama_stack_client.tool_runtime.list_tools(
|
||||
|
|
@ -309,10 +297,7 @@ class TestMCPToolInvocation:
|
|||
mcp_endpoint=dict(uri=uri),
|
||||
)
|
||||
|
||||
# Authorization now passed as request body parameter
|
||||
# Removed auth_headers - using authorization parameter instead
|
||||
# (no longer needed)
|
||||
}
|
||||
|
||||
|
||||
# List tools to populate the tool index
|
||||
llama_stack_client.tool_runtime.list_tools(
|
||||
|
|
@ -365,10 +350,7 @@ class TestAgentWithMCPTools:
|
|||
mcp_endpoint=dict(uri=uri),
|
||||
)
|
||||
|
||||
# Authorization now passed as request body parameter
|
||||
# Removed auth_headers - using authorization parameter instead
|
||||
# (no longer needed)
|
||||
}
|
||||
|
||||
|
||||
tools_list = llama_stack_client.tools.list(
|
||||
toolgroup_id=test_toolgroup_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue