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

Method test_with_csp

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

Source from the content-addressed store, hash-verified

63 assert "<html>" in info.html_content
64
65 def test_with_csp(self):
66 csp = {"connectDomains": ["https://api.example.com"]}
67 info = AppInfo(
68 tool_name="test",
69 resource_uri="ui://test/app.html",
70 server_name="s",
71 port=9470,
72 csp=csp,
73 )
74 assert info.csp == csp
75
76
77class TestHostContext:

Callers

nothing calls this directly

Calls 1

AppInfoClass · 0.90

Tested by

no test coverage detected