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

Function _fresh_tool_state

tests/chat/test_memory_integration.py:23–35  ·  view source on GitHub ↗

Reset the global tool state singleton before each test.

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected