MCPcopy Create free account
hub / github.com/cyberrumor/ammo / test_tool_controller_str

Function test_tool_controller_str

test/test_tool_controller.py:192–210  ·  view source on GitHub ↗

Test that the tool controller looks the way we expect it to.

(mock_tool_has_extra_folder)

Source from the content-addressed store, hash-verified

190def test_tool_controller_str(mock_tool_has_extra_folder):
191 """
192 Test that the tool controller looks the way we expect it to.
193 """
194 expected = textwrap.dedent(
195 """
196 index | Tool
197 -------|----------
198 [0] edit_scripts
199 [1] normal_mod
200 """
201 )
202 with AmmoToolController() as controller:
203 # Tools get ordered alphabetically, not by install order.
204 # This ensures the same order persists through different sessions.
205 extract_tool(controller, "normal_mod")
206 extract_tool(controller, "edit_scripts")
207
208 assert str(controller).endswith(expected)

Callers

nothing calls this directly

Calls 2

AmmoToolControllerClass · 0.85
extract_toolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…