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

Method test_propagate

test/orm/test_attributes.py:3722–3738  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3720 )
3721
3722 def test_propagate(self):
3723 for (A, B, C, D), canary in self._test_propagate_fixtures(
3724 False, False
3725 ):
3726 b = B()
3727 b.attrib = "foo"
3728 eq_(b.attrib, "foo")
3729
3730 eq_(canary, [("foo", attributes.NO_VALUE)])
3731
3732 c = C()
3733 c.attrib = "bar"
3734 eq_(c.attrib, "bar")
3735 eq_(
3736 canary,
3737 [("foo", attributes.NO_VALUE), ("bar", attributes.NO_VALUE)],
3738 )
3739
3740 def test_propagate_useobject_active_history(self):
3741 for (A, B, C, D), canary in self._test_propagate_fixtures(True, True):

Callers

nothing calls this directly

Calls 4

eq_Function · 0.90
BClass · 0.70
CClass · 0.70

Tested by

no test coverage detected