MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _fixture

Method _fixture

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

Source from the content-addressed store, hash-verified

114 )
115
116 def _fixture(self):
117 Graph, Edge, Point = (
118 self.classes.Graph,
119 self.classes.Edge,
120 self.classes.Point,
121 )
122
123 sess = Session(testing.db)
124 g = Graph(
125 id=1,
126 edges=[
127 Edge(Point(3, 4), Point(5, 6)),
128 Edge(Point(14, 5), Point(2, 7)),
129 ],
130 )
131 sess.add(g)
132 sess.commit()
133 return sess
134
135 def test_early_configure(self):
136 # test [ticket:2935], that we can call a composite

Callers 15

test_round_tripMethod · 0.95
test_detect_changeMethod · 0.95
test_eager_loadMethod · 0.95
test_comparatorMethod · 0.95
test_update_crit_sqlMethod · 0.95
test_bulk_insertMethod · 0.95
test_bulk_updateMethod · 0.95

Calls 6

addMethod · 0.95
commitMethod · 0.95
SessionClass · 0.90
GraphClass · 0.70
EdgeClass · 0.70
PointClass · 0.70

Tested by

no test coverage detected