MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_is_orphan

Method _assert_is_orphan

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

Source from the content-addressed store, hash-verified

3720 assert not mapper._is_orphan(state)
3721
3722 def _assert_is_orphan(self, c1):
3723 mapper = object_mapper(c1)
3724 state = instance_state(c1)
3725 assert mapper._is_orphan(state)
3726
3727 def test_leg_pers_r1_r2(self):
3728 c1 = self._fixture(True, True, True, True)

Calls 3

object_mapperFunction · 0.90
instance_stateFunction · 0.85
_is_orphanMethod · 0.80

Tested by

no test coverage detected