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

Method test_join_alias_flat

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

Source from the content-addressed store, hash-verified

2029 )
2030
2031 def test_join_alias_flat(self):
2032 a = table("a", column("a"))
2033 b = table("b", column("b"))
2034 self.assert_compile(
2035 a.join(b, a.c.a == b.c.b)._anonymous_fromclause(flat=True),
2036 "a AS a_1 JOIN b AS b_1 ON a_1.a = b_1.b",
2037 )
2038
2039 def test_join_standalone_alias_flat(self):
2040 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