MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_source_modified_composite_unmodified

Method test_source_modified_composite_unmodified

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

Source from the content-addressed store, hash-verified

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()
251 a1.obj().foo = 10
252 a1._commit_all(a1.dict)
253 pairs = [
254 (a_mapper.c.id, b_mapper.c.id),
255 (a_mapper.c.foo, b_mapper.c.id),
256 ]
257 eq_(sync._source_modified(uowcommit, a1, a_mapper, pairs), False)
258
259 def test_source_modified_no_unmapped(self):
260 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