MCPcopy
hub / github.com/pydantic/pydantic / test_success

Function test_success

tests/test_main.py:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56
57def test_success():
58 # same as below but defined here so class definition occurs inside the test
59 class Model(BaseModel):
60 a: float
61 b: int = 10
62
63 m = Model(a=10.2)
64 assert m.a == 10.2
65 assert m.b == 10
66
67
68@pytest.fixture(name='UltraSimpleModel', scope='session')

Callers

nothing calls this directly

Calls 1

ModelClass · 0.70

Tested by

no test coverage detected