reducerspec
This commit is contained in:
@@ -111,7 +111,13 @@ def test_service_lists_all_capability_sources_with_owned_capability_names() -> N
|
||||
|
||||
std_source = sources_by_id["wf.std"]
|
||||
assert "wf.std.runtime_error" in std_source["capabilities"]["node_specs"]
|
||||
assert std_source["capabilities"]["reducers"] == [
|
||||
"wf.std.append",
|
||||
"wf.std.merge_object",
|
||||
"wf.std.replace",
|
||||
]
|
||||
assert std_source["capabilities"]["tools"] == []
|
||||
assert std_source["reducer_count"] == 3
|
||||
|
||||
mcp_source = sources_by_id["wf.mcp"]
|
||||
assert mcp_source["capabilities"]["node_specs"] == ["wf.mcp.call_tool"]
|
||||
@@ -146,6 +152,17 @@ def test_wf_std_source_contains_authoring_ops() -> None:
|
||||
assert set(specs) == expected
|
||||
|
||||
|
||||
def test_wf_std_source_contains_builtin_reducers() -> None:
|
||||
service = WfMcpService(store=FileStore(local_temp_root() / "stdlib_reducer_store"))
|
||||
reducers = service.capability_sources["wf.std"].capabilities.reducers
|
||||
|
||||
assert set(reducers) == {
|
||||
"wf.std.replace",
|
||||
"wf.std.append",
|
||||
"wf.std.merge_object",
|
||||
}
|
||||
|
||||
|
||||
def test_service_sources_have_visibility_and_capability_buckets() -> None:
|
||||
service = WfMcpService(store=FileStore(local_temp_root() / "source_shape_store"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user