MCPcopy Create free account
hub / github.com/IBM/mcp-cli / _fresh_tool_state

Function _fresh_tool_state

tests/chat/test_tool_processor_extended.py:40–52  ·  view source on GitHub ↗

Reset the global tool state singleton before each test with permissive limits.

()

Source from the content-addressed store, hash-verified

38
39@pytest.fixture(autouse=True)
40def _fresh_tool_state():
41 """Reset the global tool state singleton before each test with permissive limits."""
42 reset_tool_state()
43 _guard_mgr._tool_state = ToolStateManager(
44 limits=RuntimeLimits(
45 per_tool_cap=100,
46 tool_budget_total=100,
47 discovery_budget=50,
48 execution_budget=50,
49 )
50 )
51 yield
52 reset_tool_state()
53
54
55# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected