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

Function _fresh_tool_state

tests/chat/test_tool_processor.py:26–38  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

24
25@pytest.fixture(autouse=True)
26def _fresh_tool_state():
27 """Reset the global tool state singleton before each test with permissive limits."""
28 reset_tool_state()
29 _guard_mgr._tool_state = ToolStateManager(
30 limits=RuntimeLimits(
31 per_tool_cap=100,
32 tool_budget_total=100,
33 discovery_budget=50,
34 execution_budget=50,
35 )
36 )
37 yield
38 reset_tool_state()
39
40
41# ---------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected