Test lazy import of handle_chat_mode.
(self)
| 8 | """Tests for lazy import in chat module.""" |
| 9 | |
| 10 | def test_getattr_handle_chat_mode(self): |
| 11 | """Test lazy import of handle_chat_mode.""" |
| 12 | from mcp_cli import chat |
| 13 | |
| 14 | # Access the lazy-loaded attribute |
| 15 | func = chat.handle_chat_mode |
| 16 | assert callable(func) |
| 17 | |
| 18 | def test_getattr_invalid_attribute(self): |
| 19 | """Test AttributeError for invalid attribute.""" |
nothing calls this directly
no outgoing calls
no test coverage detected