MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_get_by_col

Method test_get_by_col

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

Source from the content-addressed store, hash-verified

1109 return sess
1110
1111 def test_get_by_col(self):
1112 Graph = self.classes.Graph
1113
1114 sess = self._fixture()
1115 g = sess.query(Graph).first()
1116
1117 g2 = sess.get(Graph, [g.id, g.version_id])
1118 eq_(g.version, g2.version)
1119
1120 def test_get_by_composite(self):
1121 Graph, Version = self.classes.Graph, self.classes.Version

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
eq_Function · 0.90
firstMethod · 0.45
queryMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected