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

Method test_default_caps

tests/display/test_models.py:446–451  ·  view source on GitHub ↗

Default values match expected constants.

(self)

Source from the content-addressed store, hash-verified

444 assert state.finish_reason is None
445
446 def test_default_caps(self):
447 """Default values match expected constants."""
448 state = StreamingState()
449 assert state.max_accumulated_chars == 1_048_576
450 assert state.max_chunks == 50_000
451 assert not state.content_capped
452
453 def test_chunks_still_counted_when_capped(self):
454 """chunks_received keeps incrementing even after cap."""

Callers

nothing calls this directly

Calls 1

StreamingStateClass · 0.90

Tested by

no test coverage detected