MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_basic

Method test_basic

tests/test_utils/test_json.py:15–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14class TestOpenapiDumps:
15 def test_basic(self) -> None:
16 data = {"key": "value", "number": 42}
17 json_bytes = openapi_dumps(data)
18 assert json_bytes == b'{"key":"value","number":42}'
19
20 def test_str_variant(self) -> None:
21 data = {"key": "välue", "when": datetime.date(2023, 1, 1)}

Callers

nothing calls this directly

Calls 1

openapi_dumpsFunction · 0.90

Tested by

no test coverage detected