Normal cleanup calls cleanup.
(self)
| 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): |
nothing calls this directly
no test coverage detected