From 25c6732019550e6f26ae4da58084b939e04cffa1 Mon Sep 17 00:00:00 2001 From: Diana Clarke Date: Sat, 30 Mar 2013 09:30:58 -0400 Subject: [PATCH] moving insert returning test back into CRUD test class until I figure out why moving it broke the oracle/postgres builds --- test/sql/test_compiler.py | 5 +++++ test/sql/test_insert.py | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 886f3895b3..c3638f52fc 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -2460,6 +2460,11 @@ class KwargPropagationTest(fixtures.TestBase): class CRUDTest(fixtures.TestBase, AssertsCompiledSQL): __dialect__ = 'default' + def test_insert_returning_not_in_default(self): + stmt = table1.insert().returning(table1.c.myid) + m = "RETURNING is not supported by this dialect's statement compiler." + assert_raises_message(exc.CompileError, m, stmt.compile) + def test_correlated_update(self): # test against a straight text subquery u = update(table1, values={ diff --git a/test/sql/test_insert.py b/test/sql/test_insert.py index adfa4102b6..c74e11e182 100644 --- a/test/sql/test_insert.py +++ b/test/sql/test_insert.py @@ -109,13 +109,6 @@ class InsertTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL): self.assert_compile(table.insert(inline=True), 'INSERT INTO sometable (foo) VALUES (foobar())', params={}) - def test_returning_not_in_default(self): - table1 = self.tables.mytable - - stmt = table1.insert().returning(table1.c.myid) - m = "RETURNING is not supported by this dialect's statement compiler." - assert_raises_message(exc.CompileError, m, stmt.compile) - class EmptyTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL): __dialect__ = 'default' -- 2.47.2