MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_comparator_aliased

Method test_comparator_aliased

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

Source from the content-addressed store, hash-verified

229 eq_(sess.query(Edge).filter(Edge.start == None).all(), []) # noqa
230
231 def test_comparator_aliased(self):
232 Graph, Edge, Point = (
233 self.classes.Graph,
234 self.classes.Edge,
235 self.classes.Point,
236 )
237
238 sess = self._fixture()
239
240 g = sess.query(Graph).first()
241 ea = aliased(Edge)
242 assert (
243 sess.query(ea).filter(ea.start != Point(3, 4)).first()
244 is g.edges[1]
245 )
246
247 def test_update_crit_sql(self):
248 Edge, Point = (self.classes.Edge, self.classes.Point)

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
aliasedFunction · 0.90
PointClass · 0.70
firstMethod · 0.45
queryMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected