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

Method test_defaults

tests/chat/test_token_tracker.py:14–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 assert turn.total_tokens == 150
13
14 def test_defaults(self):
15 turn = TurnUsage()
16 assert turn.input_tokens == 0
17 assert turn.output_tokens == 0
18 assert turn.model == ""
19 assert turn.provider == ""
20 assert turn.estimated is False
21
22 def test_estimated_flag(self):
23 turn = TurnUsage(output_tokens=25, estimated=True)

Callers

nothing calls this directly

Calls 1

TurnUsageClass · 0.90

Tested by

no test coverage detected