mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-18 23:11:12 +02:00
test(capabilities): expect export_run in the agent tool manifest
The run-reader set gained export_run (CSV export of a stored run), but this manifest assertion still expected only read_run/search_run. Add export_run so the agent-door test reflects the shipped readers.
This commit is contained in:
parent
6b15d610d9
commit
bcfc3a5c3a
1 changed files with 8 additions and 2 deletions
|
|
@ -78,8 +78,14 @@ async def test_registry_becomes_one_tool_per_verb_plus_readers(isolate):
|
||||||
tools = isolate.module.build_capability_tools(workspace_id=7, capabilities=caps)
|
tools = isolate.module.build_capability_tools(workspace_id=7, capabilities=caps)
|
||||||
|
|
||||||
by_name = {t.name: t for t in tools}
|
by_name = {t.name: t for t in tools}
|
||||||
# One tool per verb, plus the two shared run-reader tools.
|
# One tool per verb, plus the shared run-reader tools.
|
||||||
assert set(by_name) == {"web_scrape", "web_discover", "read_run", "search_run"}
|
assert set(by_name) == {
|
||||||
|
"web_scrape",
|
||||||
|
"web_discover",
|
||||||
|
"read_run",
|
||||||
|
"search_run",
|
||||||
|
"export_run",
|
||||||
|
}
|
||||||
assert by_name["web_scrape"].description == "web.scrape does a thing."
|
assert by_name["web_scrape"].description == "web.scrape does a thing."
|
||||||
assert by_name["web_scrape"].args_schema is _EchoInput
|
assert by_name["web_scrape"].args_schema is _EchoInput
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue