summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorDiana Clarke <diana.joan.clarke@gmail.com>2013-03-30 09:30:58 -0400
committerDiana Clarke <diana.joan.clarke@gmail.com>2013-03-30 09:30:58 -0400
commit25c6732019550e6f26ae4da58084b939e04cffa1 (patch)
tree32a319d13f22ece65148f2208d589cfc04fc6091 /test/sql
parent2fa9dd6bb878573c970aeadad978a19053e550d1 (diff)
downloadsqlalchemy-25c6732019550e6f26ae4da58084b939e04cffa1.tar.gz
moving insert returning test back into CRUD test class until I figure out why moving it broke the oracle/postgres builds
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_compiler.py5
-rw-r--r--test/sql/test_insert.py7
2 files changed, 5 insertions, 7 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py
index 886f3895b..c3638f52f 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 adfa4102b..c74e11e18 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'