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

Function reset_context

tests/conftest.py:8–13  ·  view source on GitHub ↗

Reset the context manager before each test.

()

Source from the content-addressed store, hash-verified

6
7@pytest.fixture(autouse=True)
8def reset_context():
9 """Reset the context manager before each test."""
10 ContextManager().reset()
11 yield
12 # Clean up after test
13 ContextManager().reset()
14
15
16def setup_test_context(tool_manager=None, **kwargs):

Callers

nothing calls this directly

Calls 2

ContextManagerClass · 0.90
resetMethod · 0.45

Tested by

no test coverage detected