MCPcopy Index your code
hub / github.com/github/copilot-sdk / test_token_prices_absent

Method test_token_prices_absent

python/test_client.py:1212–1216  ·  view source on GitHub ↗

ModelBilling without tokenPrices leaves token_prices unset.

(self)

Source from the content-addressed store, hash-verified

1210 assert billing.to_dict() == wire
1211
1212 def test_token_prices_absent(self):
1213 """ModelBilling without tokenPrices leaves token_prices unset."""
1214 billing = ModelBilling.from_dict({"multiplier": 1.0})
1215 assert billing.token_prices is None
1216 assert billing.to_dict() == {"multiplier": 1.0}
1217
1218 def test_token_prices_empty_object_round_trip(self):
1219 """ModelBilling preserves present but empty tokenPrices."""

Callers

nothing calls this directly

Calls 2

from_dictMethod · 0.45
to_dictMethod · 0.45

Tested by

no test coverage detected