MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_populate_dict

Method test_populate_dict

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

Source from the content-addressed store, hash-verified

194 )
195
196 def test_populate_dict(self):
197 uowcommit, a1, b1, a_mapper, b_mapper = self._fixture()
198 a1.obj().id = 10
199 pairs = [(a_mapper.c.id, b_mapper.c.id)]
200 dest = {}
201 sync._populate_dict(a1, a_mapper, dest, pairs)
202 eq_(dest, {"id": 10})
203
204 def test_populate_dict_unmapped(self):
205 uowcommit, a1, b1, a_mapper, b_mapper = self._fixture()

Callers

nothing calls this directly

Calls 2

_fixtureMethod · 0.95
eq_Function · 0.90

Tested by

no test coverage detected