MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_synonym_group_bug

Method test_synonym_group_bug

test/orm/test_deferred.py:250–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

248 self.sql_count_(0, go)
249
250 def test_synonym_group_bug(self):
251 orders, Order = self.tables.orders, self.classes.Order
252
253 self.mapper_registry.map_imperatively(
254 Order,
255 orders,
256 properties={
257 "isopen": synonym("_isopen", map_column=True),
258 "description": deferred(orders.c.description, group="foo"),
259 },
260 )
261
262 sess = fixture_session()
263 o1 = sess.get(Order, 1)
264 eq_(o1.description, "order 1")
265
266 def test_unsaved_2(self):
267 Order, orders = self.classes.Order, self.tables.orders

Callers

nothing calls this directly

Calls 6

synonymFunction · 0.90
deferredFunction · 0.90
fixture_sessionFunction · 0.90
eq_Function · 0.90
map_imperativelyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected