From: Diana Clarke Date: Sat, 30 Mar 2013 13:30:58 +0000 (-0400) Subject: moving insert returning test back into CRUD test class until I figure out why moving... X-Git-Tag: rel_0_8_1~25^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25c6732019550e6f26ae4da58084b939e04cffa1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git moving insert returning test back into CRUD test class until I figure out why moving it broke the oracle/postgres builds --- 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'