Skip to content

Commit 0b9f1d5

Browse files
Update test to be compatible with new available_tools.py API.
1 parent 291d6f2 commit 0b9f1d5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_container_shell.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import seclab_taskflows.mcp_servers.container_shell as cs_mod
1010
from seclab_taskflow_agent.available_tools import AvailableTools
11+
from seclab_taskflow_agent.models import ToolboxDocument
1112

1213

1314
# ---------------------------------------------------------------------------
@@ -298,22 +299,22 @@ def test_toolbox_yaml_valid_base(self):
298299
tools = AvailableTools()
299300
result = tools.get_toolbox("seclab_taskflows.toolboxes.container_shell_base")
300301
assert result is not None
301-
assert result["seclab-taskflow-agent"]["filetype"] == "toolbox"
302+
assert isinstance(result, ToolboxDocument)
302303

303304
def test_toolbox_yaml_valid_malware(self):
304305
tools = AvailableTools()
305306
result = tools.get_toolbox("seclab_taskflows.toolboxes.container_shell_malware_analysis")
306307
assert result is not None
307-
assert result["seclab-taskflow-agent"]["filetype"] == "toolbox"
308+
assert isinstance(result, ToolboxDocument)
308309

309310
def test_toolbox_yaml_valid_network(self):
310311
tools = AvailableTools()
311312
result = tools.get_toolbox("seclab_taskflows.toolboxes.container_shell_network_analysis")
312313
assert result is not None
313-
assert result["seclab-taskflow-agent"]["filetype"] == "toolbox"
314+
assert isinstance(result, ToolboxDocument)
314315

315316
def test_toolbox_yaml_valid_sast(self):
316317
tools = AvailableTools()
317318
result = tools.get_toolbox("seclab_taskflows.toolboxes.container_shell_sast")
318319
assert result is not None
319-
assert result["seclab-taskflow-agent"]["filetype"] == "toolbox"
320+
assert isinstance(result, ToolboxDocument)

0 commit comments

Comments
 (0)