MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_get_by_composite

Method test_get_by_composite

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

Source from the content-addressed store, hash-verified

1118 eq_(g.version, g2.version)
1119
1120 def test_get_by_composite(self):
1121 Graph, Version = self.classes.Graph, self.classes.Version
1122
1123 sess = self._fixture()
1124 g = sess.query(Graph).first()
1125
1126 g2 = sess.get(Graph, Version(g.id, g.version_id))
1127 eq_(g.version, g2.version)
1128
1129 def test_pk_mutation(self):
1130 Graph, Version = self.classes.Graph, self.classes.Version

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected