()
| 11 | |
| 12 | |
| 13 | def test_deprecated_from_orm_inheritance(): |
| 14 | new_item = SubItem(name="Hello", password="secret") |
| 15 | with pytest.warns(DeprecationWarning): |
| 16 | item = Item.from_orm(new_item) |
| 17 | assert item.name == "Hello" |
| 18 | assert not hasattr(item, "password") |
| 19 | |
| 20 | |
| 21 | def test_deprecated_parse_obj(): |