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

Method test_cleanup_normal

tests/chat/test_chat_handler_coverage.py:710–718  ·  view source on GitHub ↗

Normal cleanup calls cleanup.

(self)

Source from the content-addressed store, hash-verified

708
709 @pytest.mark.asyncio
710 async def test_cleanup_normal(self):
711 """Normal cleanup calls cleanup."""
712 ui = _make_ui()
713 ui.is_streaming_response = False
714 ui.tools_running = False
715 from mcp_cli.chat.chat_handler import _safe_cleanup
716
717 await _safe_cleanup(ui)
718 ui.cleanup.assert_called_once()
719
720 @pytest.mark.asyncio
721 async def test_cleanup_exception_handled(self):

Callers

nothing calls this directly

Calls 2

_safe_cleanupFunction · 0.90
_make_uiFunction · 0.70

Tested by

no test coverage detected