MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / test_deprecated_from_orm_inheritance

Function test_deprecated_from_orm_inheritance

tests/test_deprecations.py:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def 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
21def test_deprecated_parse_obj():

Callers

nothing calls this directly

Calls 2

SubItemClass · 0.85
from_ormMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…