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

Method test_full_outer_join

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

Source from the content-addressed store, hash-verified

2516 )
2517
2518 def test_full_outer_join(self):
2519 for spec in [
2520 join(table1, table2, table1.c.myid == table2.c.otherid, full=True),
2521 outerjoin(
2522 table1, table2, table1.c.myid == table2.c.otherid, full=True
2523 ),
2524 table1.join(table2, table1.c.myid == table2.c.otherid, full=True),
2525 table1.outerjoin(
2526 table2, table1.c.myid == table2.c.otherid, full=True
2527 ),
2528 ]:
2529 stmt = select(table1).select_from(spec)
2530 self.assert_compile(
2531 stmt,
2532 "SELECT mytable.myid, mytable.name, mytable.description FROM "
2533 "mytable FULL OUTER JOIN myothertable "
2534 "ON mytable.myid = myothertable.otherid",
2535 )
2536
2537 def test_compound_selects(self):
2538 assert_raises_message(

Callers

nothing calls this directly

Calls 7

joinFunction · 0.90
outerjoinFunction · 0.90
selectFunction · 0.90
assert_compileMethod · 0.80
joinMethod · 0.45
outerjoinMethod · 0.45
select_fromMethod · 0.45

Tested by

no test coverage detected