Files
cleveragents-core/features/tool_cli_uncovered_branches.feature

30 lines
1.4 KiB
Gherkin

Feature: Tool CLI uncovered branches
As a developer
I want to cover the remaining tool CLI branches
So that tool.py reaches full branch coverage
Scenario: _get_tool_registry_service constructs service from container
Given tool cli branch the container returns a mock database url
When tool cli branch I call _get_tool_registry_service
Then tool cli branch it should return a ToolRegistryService instance
Scenario: _print_tool displays lifecycle dict with values
Given tool cli branch a tool with lifecycle hooks
When tool cli branch I print the tool in rich format
Then tool cli branch the output should contain lifecycle key values
Scenario: _print_tool displays resource slots list with dict items
Given tool cli branch a tool with resource slots
When tool cli branch I print the tool with slots in rich format
Then tool cli branch the output should contain resource slot details
Scenario: _print_tool displays both lifecycle and resource slots
Given tool cli branch a tool with lifecycle and resource slots
When tool cli branch I print the full tool in rich format
Then tool cli branch the output should contain both lifecycle and slot info
Scenario: remove command handles service returning False
Given tool cli branch a mock service where remove_tool returns False
When tool cli branch I invoke the remove command with confirmation
Then tool cli branch the output should show failed to remove tool