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

Method test_join_alias

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

Source from the content-addressed store, hash-verified

2013 )
2014
2015 def test_join_alias(self):
2016 a = table("a", column("a"))
2017 b = table("b", column("b"))
2018 self.assert_compile(
2019 a.join(b, a.c.a == b.c.b)._anonymous_fromclause(),
2020 "SELECT a.a AS a_a, b.b AS b_b FROM a JOIN b ON a.a = b.b",
2021 )
2022
2023 def test_join_standalone_alias(self):
2024 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