MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_join_alias

Method test_join_alias

test/sql/test_selectable.py:1997–2003  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1995 )
1996
1997 def test_join_alias(self):
1998 a = table("a", column("a"))
1999 b = table("b", column("b"))
2000 self.assert_compile(
2001 a.join(b, a.c.a == b.c.b)._anonymous_fromclause(),
2002 "SELECT a.a AS a_a, b.b AS b_b FROM a JOIN b ON a.a = b.b",
2003 )
2004
2005 def test_join_standalone_alias(self):
2006 a = table("a", column("a"))

Callers

nothing calls this directly

Calls 5

tableFunction · 0.90
columnFunction · 0.90
assert_compileMethod · 0.80
_anonymous_fromclauseMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected