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

Method test_aliased_query

test/ext/test_hybrid.py:1245–1253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1243 )
1244
1245 def test_aliased_query(self):
1246 A = self._fixture()
1247 sess = fixture_session()
1248 a1 = aliased(A)
1249 self.assert_compile(
1250 sess.query(a1).filter(a1.value(5) == "foo"),
1251 "SELECT a_1.id AS a_1_id, a_1.value AS a_1_value "
1252 "FROM a AS a_1 WHERE foo(a_1.value, :foo_1) + :foo_2 = :param_1",
1253 )
1254
1255 def test_query_col(self):
1256 A = self._fixture()

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected