(ModelTwo, copy_method)
| 394 | |
| 395 | |
| 396 | def test_copy_undefined(ModelTwo, copy_method): |
| 397 | m = ModelTwo(a=24, d=Model(a='123.45')) |
| 398 | m2 = copy_method(m) |
| 399 | assert m2._foo_ == {'private'} |
| 400 | |
| 401 | m._foo_ = PydanticUndefined |
| 402 | m3 = copy_method(m) |
| 403 | assert not hasattr(m3, '_foo_') |
| 404 | |
| 405 | |
| 406 | def test_immutable_copy_with_frozen(copy_method): |
nothing calls this directly
no test coverage detected