MCPcopy
hub / github.com/pydantic/pydantic / test_simple_copy

Function test_simple_copy

tests/test_construction.py:142–148  ·  view source on GitHub ↗
(copy_method)

Source from the content-addressed store, hash-verified

140
141
142def test_simple_copy(copy_method):
143 m = Model(a=24)
144 m2 = copy_method(m)
145
146 assert m.a == m2.a == 24
147 assert m.b == m2.b == 10
148 assert m == m2
149
150
151@pytest.fixture(scope='session', name='ModelTwo')

Callers

nothing calls this directly

Calls 2

copy_methodFunction · 0.85
ModelClass · 0.70

Tested by

no test coverage detected