MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_not_orphan

Method _assert_not_orphan

test/orm/test_cascade.py:3717–3720  ·  view source on GitHub ↗
(self, c1)

Source from the content-addressed store, hash-verified

3715 return c1
3716
3717 def _assert_not_orphan(self, c1):
3718 mapper = object_mapper(c1)
3719 state = instance_state(c1)
3720 assert not mapper._is_orphan(state)
3721
3722 def _assert_is_orphan(self, c1):
3723 mapper = object_mapper(c1)

Calls 3

object_mapperFunction · 0.90
instance_stateFunction · 0.85
_is_orphanMethod · 0.80

Tested by

no test coverage detected