(ModelTwo, copy_method)
| 322 | |
| 323 | |
| 324 | def test_copy_set_fields(ModelTwo, copy_method): |
| 325 | m = ModelTwo(a=24, d=Model(a='12')) |
| 326 | m2 = copy_method(m) |
| 327 | |
| 328 | assert m.model_dump(exclude_unset=True) == {'a': 24.0, 'd': {'a': 12}} |
| 329 | assert m.model_dump(exclude_unset=True) == m2.model_dump(exclude_unset=True) |
| 330 | |
| 331 | |
| 332 | def test_simple_pickle(): |
nothing calls this directly
no test coverage detected