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

Method go

test/orm/test_selectin_relations.py:2667–2687  ·  view source on GitHub ↗
(sess)

Source from the content-addressed store, hash-verified

2665 @testing.fixture
2666 def data_fixture(self):
2667 def go(sess):
2668 Node = self.classes.Node
2669 n1 = Node(data="n1")
2670 n1.append(Node(data="n11"))
2671 n1.append(Node(data="n12"))
2672 n1.append(Node(data="n13"))
2673
2674 n1.children[0].children = [Node(data="n111"), Node(data="n112")]
2675
2676 n1.children[1].append(Node(data="n121"))
2677 n1.children[1].append(Node(data="n122"))
2678 n1.children[1].append(Node(data="n123"))
2679 n2 = Node(data="n2")
2680 n2.append(Node(data="n21"))
2681 n2.children[0].append(Node(data="n211"))
2682 n2.children[0].append(Node(data="n212"))
2683 sess.add(n1)
2684 sess.add(n2)
2685 sess.flush()
2686 sess.expunge_all()
2687 return n1, n2
2688
2689 return go
2690

Callers

nothing calls this directly

Calls 15

appendMethod · 0.95
_full_structureMethod · 0.95
eq_Function · 0.90
undeferFunction · 0.90
defaultloadFunction · 0.90
selectinloadFunction · 0.90
undeferMethod · 0.80
selectinloadMethod · 0.80
NodeClass · 0.70
addMethod · 0.45
flushMethod · 0.45
expunge_allMethod · 0.45

Tested by

no test coverage detected