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

Method test_o2m_delete_old

test/orm/test_cascade.py:3883–3898  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3881 self._do_move_test(False)
3882
3883 def test_o2m_delete_old(self):
3884 Child, Parent, parent, child = (
3885 self.classes.Child,
3886 self.classes.Parent,
3887 self.tables.parent,
3888 self.tables.child,
3889 )
3890
3891 self.mapper_registry.map_imperatively(
3892 Parent,
3893 parent,
3894 properties={"child": relationship(Child, uselist=True)},
3895 )
3896 self.mapper_registry.map_imperatively(Child, child)
3897 self._do_move_test(True)
3898 self._do_move_test(False)
3899
3900 def test_o2o_backref_delete_old(self):
3901 Child, Parent, parent, child = (

Callers

nothing calls this directly

Calls 3

_do_move_testMethod · 0.95
relationshipFunction · 0.90
map_imperativelyMethod · 0.80

Tested by

no test coverage detected