MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_clear_unmapped

Method test_clear_unmapped

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

Source from the content-addressed store, hash-verified

154 )
155
156 def test_clear_unmapped(self):
157 uowcommit, a1, b1, a_mapper, b_mapper = self._fixture()
158 pairs = [(a_mapper.c.id, a_mapper.c.foo)]
159 assert_raises_message(
160 orm_exc.UnmappedColumnError,
161 "Can't execute sync rule for destination "
162 r"column 't1.foo'; mapper 'Mapper\[B\(t2\)\]' does not "
163 "map this column.",
164 sync._clear,
165 b1,
166 b_mapper,
167 pairs,
168 )
169
170 def test_update(self):
171 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