(ModelTwo)
| 206 | |
| 207 | @pytest.mark.thread_unsafe(reason='`pytest.warns()` is thread unsafe') |
| 208 | def test_copy_include_exclude(ModelTwo): |
| 209 | m = ModelTwo(a=24, d=Model(a='12')) |
| 210 | m2 = deprecated_copy(m, include={'a', 'b', 'c'}, exclude={'c'}) |
| 211 | |
| 212 | assert set(m.model_dump().keys()) == {'a', 'b', 'c', 'd'} |
| 213 | assert set(m2.model_dump().keys()) == {'a', 'b'} |
| 214 | |
| 215 | |
| 216 | @pytest.mark.thread_unsafe(reason='`pytest.warns()` is thread unsafe') |
nothing calls this directly
no test coverage detected