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

Method test_getattr_handle_chat_mode

tests/chat/test_init.py:10–16  ·  view source on GitHub ↗

Test lazy import of handle_chat_mode.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected