MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_detect_change

Method test_detect_change

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

Source from the content-addressed store, hash-verified

153 )
154
155 def test_detect_change(self):
156 Graph, Edge, Point = (
157 self.classes.Graph,
158 self.classes.Edge,
159 self.classes.Point,
160 )
161
162 sess = self._fixture()
163
164 g = sess.query(Graph).first()
165 g.edges[1].end = Point(18, 4)
166 sess.commit()
167
168 e = sess.get(Edge, g.edges[1].id)
169 eq_(e.end, Point(18, 4))
170
171 def test_not_none(self):
172 Edge = self.classes.Edge

Callers

nothing calls this directly

Calls 7

_fixtureMethod · 0.95
eq_Function · 0.90
PointClass · 0.70
firstMethod · 0.45
queryMethod · 0.45
commitMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected