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

Method test_defaults

tests/apps/test_models.py:78–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76
77class TestHostContext:
78 def test_defaults(self):
79 ctx = HostContext()
80 assert ctx.theme == "dark"
81 assert ctx.locale == "en"
82 assert ctx.platform == "desktop"
83 assert ctx.display_mode == "inline"
84 assert "inline" in ctx.available_display_modes
85 assert "fullscreen" in ctx.available_display_modes
86
87 def test_allows_extra_fields(self):
88 ctx = HostContext(custom_field="value")

Callers

nothing calls this directly

Calls 1

HostContextClass · 0.90

Tested by

no test coverage detected