Reset the global tool state singleton before each test.
()
| 21 | |
| 22 | @pytest.fixture(autouse=True) |
| 23 | def _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 | |
| 38 | class DummyUIManager: |
nothing calls this directly
no outgoing calls
no test coverage detected