]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
moving insert returning test back into CRUD test class until I figure out why moving...
authorDiana Clarke <diana.joan.clarke@gmail.com>
Sat, 30 Mar 2013 13:30:58 +0000 (09:30 -0400)
committerDiana Clarke <diana.joan.clarke@gmail.com>
Sat, 30 Mar 2013 13:30:58 +0000 (09:30 -0400)
test/sql/test_compiler.py
test/sql/test_insert.py

index 886f3895b3af272fee95965f2fd7e753fae377d3..c3638f52fce3cec7de14426cd0b309d9093b4e0b 100644 (file)
@@ -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={
index adfa4102b617d1226ef6661d807bc279667996a1..c74e11e18249c10d0aa577e9f8d23d0fe5c767ff 100644 (file)
@@ -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'