MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_compound

Method test_compound

test/dialect/oracle/test_compiler.py:1439–1451  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1437 )
1438
1439 def test_compound(self):
1440 t1 = table("t1", column("c1"), column("c2"), column("c3"))
1441 t2 = table("t2", column("c1"), column("c2"), column("c3"))
1442 self.assert_compile(
1443 union(t1.select(), t2.select()),
1444 "SELECT t1.c1, t1.c2, t1.c3 FROM t1 UNION "
1445 "SELECT t2.c1, t2.c2, t2.c3 FROM t2",
1446 )
1447 self.assert_compile(
1448 except_(t1.select(), t2.select()),
1449 "SELECT t1.c1, t1.c2, t1.c3 FROM t1 MINUS "
1450 "SELECT t2.c1, t2.c2, t2.c3 FROM t2",
1451 )
1452
1453 def test_no_paren_fns(self):
1454 for fn, expected in [

Callers

nothing calls this directly

Calls 6

tableFunction · 0.90
columnFunction · 0.90
unionFunction · 0.90
except_Function · 0.90
assert_compileMethod · 0.80
selectMethod · 0.45

Tested by

no test coverage detected