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

Method test_clear_empty

tests/commands/attach/test_attach_command.py:180–185  ·  view source on GitHub ↗
(self, cmd, ctx)

Source from the content-addressed store, hash-verified

178class TestAttachClear:
179 @pytest.mark.asyncio
180 async def test_clear_empty(self, cmd, ctx):
181 with patch("chuk_term.ui.output"):
182 result = await cmd.execute(chat_context=ctx, args="clear")
183
184 assert result.success
185 assert "nothing" in result.output.lower() or "0" in result.output.lower()
186
187 @pytest.mark.asyncio
188 async def test_clear_with_staged(self, cmd, ctx, tmp_path):

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected