MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_not_none

Method test_not_none

test/orm/test_composites.py:171–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 eq_(e.end, Point(18, 4))
170
171 def test_not_none(self):
172 Edge = self.classes.Edge
173 Point = self.classes.Point
174
175 # new in 2.1; None return can be controlled, so by default you
176 # get an empty populated object
177 e1 = Edge()
178 eq_(e1.end, Point(None, None))
179 sess = fixture_session()
180 sess.add(e1)
181
182 # old notes here referred to 0.7.3 as well as issue #2308, #2309.
183 # however as of 2.1 this is consistent
184
185 sess.flush()
186 eq_(e1.end, Point(None, None))
187
188 def test_eager_load(self):
189 Graph, Point = self.classes.Graph, self.classes.Point

Callers

nothing calls this directly

Calls 6

eq_Function · 0.90
fixture_sessionFunction · 0.90
EdgeClass · 0.70
PointClass · 0.70
addMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected