MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_source_modified_composite

Method test_source_modified_composite

test/orm/test_sync.py:238–247  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

236 eq_(sync._source_modified(uowcommit, a1, a_mapper, pairs), True)
237
238 def test_source_modified_composite(self):
239 uowcommit, a1, b1, a_mapper, b_mapper = self._fixture()
240 a1.obj().foo = 10
241 a1._commit_all(a1.dict)
242 a1.obj().foo = 12
243 pairs = [
244 (a_mapper.c.id, b_mapper.c.id),
245 (a_mapper.c.foo, b_mapper.c.id),
246 ]
247 eq_(sync._source_modified(uowcommit, a1, a_mapper, pairs), True)
248
249 def test_source_modified_composite_unmodified(self):
250 uowcommit, a1, b1, a_mapper, b_mapper = self._fixture()

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
eq_Function · 0.90
_commit_allMethod · 0.80

Tested by

no test coverage detected