MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _assert_not_orphan

Method _assert_not_orphan

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

Source from the content-addressed store, hash-verified

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

Calls 3

object_mapperFunction · 0.90
instance_stateFunction · 0.85
_is_orphanMethod · 0.80

Tested by

no test coverage detected