MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

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

Source from the content-addressed store, hash-verified

2852 @testing.fixture
2853 def data_fixture(self):
2854 def go(sess):
2855 Node = self.classes.Node
2856 n1 = Node(data="n1")
2857 n1.append(Node(data="n11"))
2858 n1.append(Node(data="n12"))
2859 n1.append(Node(data="n13"))
2860
2861 n1.children[0].children = [Node(data="n111"), Node(data="n112")]
2862
2863 n1.children[1].append(Node(data="n121"))
2864 n1.children[1].append(Node(data="n122"))
2865 n1.children[1].append(Node(data="n123"))
2866 n2 = Node(data="n2")
2867 n2.append(Node(data="n21"))
2868 n2.children[0].append(Node(data="n211"))
2869 n2.children[0].append(Node(data="n212"))
2870 sess.add(n1)
2871 sess.add(n2)
2872 sess.flush()
2873 sess.expunge_all()
2874 return n1, n2
2875
2876 return go
2877

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