MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_mapper_undefer_unraise

Method test_mapper_undefer_unraise

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

Source from the content-addressed store, hash-verified

2627 eq_(a1.x, 2)
2628
2629 def test_mapper_undefer_unraise(self):
2630 A = self.classes.A
2631 s = fixture_session()
2632 a1 = s.query(A).options(undefer(A.z)).first()
2633 assert "z" in a1.__dict__
2634 eq_(a1.z, 4)
2635 eq_(a1.x, 2)
2636
2637 def test_deferred_raise_option_raise_column_plain(self):
2638 A = self.classes.A

Callers

nothing calls this directly

Calls 6

fixture_sessionFunction · 0.90
undeferFunction · 0.90
eq_Function · 0.90
firstMethod · 0.45
optionsMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected