MCPcopy
hub / github.com/pydantic/pydantic / ModelTwo

Class ModelTwo

tests/test_construction.py:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151@pytest.fixture(scope='session', name='ModelTwo')
152def model_two_fixture():
153 class ModelTwo(BaseModel):
154 _foo_ = PrivateAttr({'private'})
155
156 a: float
157 b: int = 10
158 c: str = 'foobar'
159 d: Model
160
161 return ModelTwo
162

Callers 10

test_deep_copyFunction · 0.70
test_copy_excludeFunction · 0.70
test_copy_includeFunction · 0.70
test_copy_updateFunction · 0.70
test_copy_set_fieldsFunction · 0.70
test_copy_undefinedFunction · 0.70
test_dunder_copyFunction · 0.70
test_dunder_deepcopyFunction · 0.70
test_model_copyFunction · 0.70

Calls 1

PrivateAttrFunction · 0.90

Tested by 10

test_deep_copyFunction · 0.56
test_copy_excludeFunction · 0.56
test_copy_includeFunction · 0.56
test_copy_updateFunction · 0.56
test_copy_set_fieldsFunction · 0.56
test_copy_undefinedFunction · 0.56
test_dunder_copyFunction · 0.56
test_dunder_deepcopyFunction · 0.56
test_model_copyFunction · 0.56