MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

test/orm/test_eager_relations.py:4564–4583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4562 sess.expunge_all()
4563
4564 def go():
4565 d = sess.query(Node).filter_by(data="n1").all()[0]
4566 eq_(
4567 Node(
4568 data="n1",
4569 children=[
4570 Node(data="n11"),
4571 Node(
4572 data="n12",
4573 children=[
4574 Node(data="n121"),
4575 Node(data="n122"),
4576 Node(data="n123"),
4577 ],
4578 ),
4579 Node(data="n13"),
4580 ],
4581 ),
4582 d,
4583 )
4584
4585 self.assert_sql_count(testing.db, go, 1)
4586

Callers

nothing calls this directly

Calls 12

eq_Function · 0.90
undeferFunction · 0.90
defaultloadFunction · 0.90
joinedloadFunction · 0.90
undeferMethod · 0.80
NodeClass · 0.70
allMethod · 0.45
filter_byMethod · 0.45
queryMethod · 0.45
firstMethod · 0.45
order_byMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected