MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_full_outer_join

Method test_full_outer_join

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

Source from the content-addressed store, hash-verified

2540 )
2541
2542 def test_full_outer_join(self):
2543 for spec in [
2544 join(table1, table2, table1.c.myid == table2.c.otherid, full=True),
2545 outerjoin(
2546 table1, table2, table1.c.myid == table2.c.otherid, full=True
2547 ),
2548 table1.join(table2, table1.c.myid == table2.c.otherid, full=True),
2549 table1.outerjoin(
2550 table2, table1.c.myid == table2.c.otherid, full=True
2551 ),
2552 ]:
2553 stmt = select(table1).select_from(spec)
2554 self.assert_compile(
2555 stmt,
2556 "SELECT mytable.myid, mytable.name, mytable.description FROM "
2557 "mytable FULL OUTER JOIN myothertable "
2558 "ON mytable.myid = myothertable.otherid",
2559 )
2560
2561 def test_compound_selects(self):
2562 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