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

Method test_custom_max_args

tests/display/test_formatters.py:97–106  ·  view source on GitHub ↗

Test with custom max_args parameter.

(self)

Source from the content-addressed store, hash-verified

95 assert "optional=None" in result
96
97 def test_custom_max_args(self):
98 """Test with custom max_args parameter."""
99 args = {"a": "1", "b": "2", "c": "3"}
100 result = format_args_preview(args, max_args=3)
101
102 # All 3 should be shown
103 assert "a=1" in result
104 assert "b=2" in result
105 assert "c=3" in result
106 assert "more" not in result
107
108 def test_custom_max_len(self):
109 """Test with custom max_len parameter."""

Callers

nothing calls this directly

Calls 1

format_args_previewFunction · 0.90

Tested by

no test coverage detected