MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_aliased_query

Method test_aliased_query

test/ext/test_hybrid.py:146–154  ·  view source on GitHub ↗
(self, use_inplace, use_classmethod)

Source from the content-addressed store, hash-verified

144 @testing.variation("use_inplace", [True, False])
145 @testing.variation("use_classmethod", [True, False])
146 def test_aliased_query(self, use_inplace, use_classmethod):
147 A = self._fixture(
148 use_inplace=use_inplace, use_classmethod=use_classmethod
149 )
150 sess = fixture_session()
151 self.assert_compile(
152 sess.query(aliased(A).value),
153 "SELECT a_1.value AS a_1_value FROM a AS a_1",
154 )
155
156 @testing.variation("use_inplace", [True, False])
157 @testing.variation("use_classmethod", [True, False])

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
fixture_sessionFunction · 0.90
aliasedFunction · 0.90
assert_compileMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected