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

Method setup

tests/commands/definitions/test_help_coverage.py:90–99  ·  view source on GitHub ↗

Setup and cleanup for each test.

(self)

Source from the content-addressed store, hash-verified

88
89 @pytest.fixture(autouse=True)
90 def setup(self):
91 """Setup and cleanup for each test."""
92 # Reset the registry before each test
93 UnifiedCommandRegistry.reset()
94 self.registry = UnifiedCommandRegistry()
95 self.help_cmd = HelpCommand()
96 yield
97 # Clean up after test
98 self.registry.clear()
99 UnifiedCommandRegistry.reset()
100
101 def test_help_text_property(self):
102 """Test that help_text property returns the correct text."""

Callers

nothing calls this directly

Calls 4

HelpCommandClass · 0.90
resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected