MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_c_attr

Method test_c_attr

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

Source from the content-addressed store, hash-verified

152 )
153
154 def test_c_attr(self):
155 Data = self.classes.Data
156
157 b1 = Bundle("b1", Data.d1, Data.d2)
158
159 self.assert_compile(
160 select(b1.c.d1, b1.c.d2), "SELECT data.d1, data.d2 FROM data"
161 )
162
163 @testing.variation(
164 "stmt_type", ["legacy", "newstyle", "newstyle_w_label_conv"]

Callers

nothing calls this directly

Calls 3

BundleClass · 0.90
selectFunction · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected