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

Function test_basic

tests/test_models.py:21–23  ·  view source on GitHub ↗
(value: object)

Source from the content-addressed store, hash-verified

19
20@pytest.mark.parametrize("value", ["hello", 1], ids=["correct type", "mismatched"])
21def test_basic(value: object) -> None:
22 m = BasicModel.construct(foo=value)
23 assert m.foo == value
24
25
26def test_directly_nested_model() -> None:

Callers

nothing calls this directly

Calls 1

constructMethod · 0.45

Tested by

no test coverage detected