MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_basic

Method test_basic

test/orm/test_cycles.py:233–245  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 )
232
233 def test_basic(self):
234 TT = self.classes.TT
235
236 t1 = TT()
237 t1.children.append(TT())
238 t1.children.append(TT())
239
240 s = fixture_session()
241 s.add(t1)
242 s.flush()
243 s.expunge_all()
244 t = s.query(TT).filter_by(id=t1.id).one()
245 eq_(t.children[0].parent_uuid, t1.uuid)
246
247 def test_lazy_clause(self):
248 TT = self.classes.TT

Callers

nothing calls this directly

Calls 10

fixture_sessionFunction · 0.90
eq_Function · 0.90
TTClass · 0.85
appendMethod · 0.45
addMethod · 0.45
flushMethod · 0.45
expunge_allMethod · 0.45
oneMethod · 0.45
filter_byMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected