MCPcopy
hub / github.com/openai/openai-python / test_basic

Method test_basic

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

Source from the content-addressed store, hash-verified

11
12class TestOpenapiDumps:
13 def test_basic(self) -> None:
14 data = {"key": "value", "number": 42}
15 json_bytes = openapi_dumps(data)
16 assert json_bytes == b'{"key":"value","number":42}'
17
18 def test_datetime_serialization(self) -> None:
19 dt = datetime.datetime(2023, 1, 1, 12, 0, 0)

Callers

nothing calls this directly

Calls 1

openapi_dumpsFunction · 0.90

Tested by

no test coverage detected