MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_alias

Method test_alias

test/sql/test_compiler.py:7307–7315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7305 self.assert_compile(stmt, expected)
7306
7307 def test_alias(self):
7308 a = alias(table4, "remtable")
7309 self.assert_compile(
7310 a.select().where(a.c.datatype_id == 7),
7311 "SELECT remtable.rem_id, remtable.datatype_id, "
7312 "remtable.value FROM"
7313 " remote_owner.remotetable AS remtable "
7314 "WHERE remtable.datatype_id = :datatype_id_1",
7315 )
7316
7317 def test_update(self):
7318 self.assert_compile(

Callers

nothing calls this directly

Calls 4

aliasFunction · 0.90
assert_compileMethod · 0.80
whereMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected