fix: tool name change (#8302)
* tool name changes * tool name changes * revert URL * reset structured output * [autofix.ci] apply automated fixes * fix test make_api_request name * change tool name test --------- Co-authored-by: Edwin Jose <edwin.jose@datastax.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
da3542e901
commit
80c6897c93
20 changed files with 43 additions and 28 deletions
|
|
@ -238,7 +238,7 @@ class TestAPIRequestComponent(ComponentTestBaseWithoutClient):
|
|||
assert "param1=value1" in result
|
||||
assert "param2=value2" in result
|
||||
|
||||
async def test_make_api_requests(self, component):
|
||||
async def test_make_api_request(self, component):
|
||||
# Test making API requests
|
||||
url = "https://example.com/api/test"
|
||||
response_data = {"key": "value"}
|
||||
|
|
@ -246,7 +246,7 @@ class TestAPIRequestComponent(ComponentTestBaseWithoutClient):
|
|||
with respx.mock:
|
||||
respx.get(url).mock(return_value=Response(200, json=response_data))
|
||||
|
||||
result = await component.make_api_requests()
|
||||
result = await component.make_api_request()
|
||||
|
||||
assert isinstance(result, Data)
|
||||
assert result.data["source"] == url
|
||||
|
|
@ -256,7 +256,7 @@ class TestAPIRequestComponent(ComponentTestBaseWithoutClient):
|
|||
# Test invalid URL handling
|
||||
component.url_input = "not_a_valid_url"
|
||||
with pytest.raises(ValueError, match="Invalid URL provided"):
|
||||
await component.make_api_requests()
|
||||
await component.make_api_request()
|
||||
|
||||
async def test_update_build_config(self, component):
|
||||
# Test build config updates
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ async def test_component_to_toolkit():
|
|||
assert len(tools) == 1
|
||||
tool = tools[0]
|
||||
|
||||
assert tool.name == "Agent"
|
||||
assert tool.name == "Call_Agent"
|
||||
|
||||
assert tool.description == DEFAULT_TOOLS_DESCRIPTION, tool.description
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue