MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_same_named_col_in_fetch

Method test_same_named_col_in_fetch

test/orm/test_bundle.py:151–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

149 )
150
151 def test_same_named_col_in_fetch(self):
152 Data, Other = self.classes("Data", "Other")
153 bundle = Bundle("pk", Data.id, Other.id)
154 sess = fixture_session()
155
156 eq_(
157 sess.query(bundle)
158 .filter(Data.id == Other.id)
159 .filter(Data.id < 3)
160 .all(),
161 [((1, 1),), ((2, 2),)],
162 )
163
164 @testing.combinations(Bundle, DictBundle, argnames="kind")
165 def test_c_attr(self, kind):

Callers

nothing calls this directly

Calls 6

BundleClass · 0.90
fixture_sessionFunction · 0.90
eq_Function · 0.90
allMethod · 0.45
filterMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected