MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_populate_unmapped_dest

Method test_populate_unmapped_dest

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

Source from the content-addressed store, hash-verified

113 )
114
115 def test_populate_unmapped_dest(self):
116 uowcommit, a1, b1, a_mapper, b_mapper = self._fixture()
117 pairs = [(a_mapper.c.id, a_mapper.c.id)]
118 assert_raises_message(
119 orm_exc.UnmappedColumnError,
120 r"Can't execute sync rule for destination "
121 r"column 't1.id'; "
122 r"mapper 'Mapper\[B\(t2\)\]' does not map this column.",
123 sync._populate,
124 a1,
125 a_mapper,
126 b1,
127 b_mapper,
128 pairs,
129 uowcommit,
130 False,
131 )
132
133 def test_clear(self):
134 uowcommit, a1, b1, a_mapper, b_mapper = self._fixture()

Callers

nothing calls this directly

Calls 2

_fixtureMethod · 0.95
assert_raises_messageFunction · 0.90

Tested by

no test coverage detected