From 87cdda008673e01e2c32049f103e9cdebd2a5d77 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 1 Dec 2018 14:28:57 -0500 Subject: Move CRUDTest, InlineDefaultTest from test_compiler test_compiler is mostly related to SELECT statements as well as smaller SQL elements. While it still has some DDL related tests, move out all the remaining insert/update tests into the already present test_insert.py, test_update.py Fixes: #2630 Change-Id: I4167618543fd1235d12d1717c8c629d2374b325a --- test/sql/test_delete.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/sql/test_delete.py') diff --git a/test/sql/test_delete.py b/test/sql/test_delete.py index 91f2c2cdc..331a53601 100644 --- a/test/sql/test_delete.py +++ b/test/sql/test_delete.py @@ -27,6 +27,16 @@ class _DeleteTestBase(object): class DeleteTest(_DeleteTestBase, fixtures.TablesTest, AssertsCompiledSQL): __dialect__ = 'default' + def test_delete_literal_binds(self): + table1 = self.tables.mytable + + stmt = table1.delete().where(table1.c.name == 'jill') + + self.assert_compile( + stmt, + "DELETE FROM mytable WHERE mytable.name = 'jill'", + literal_binds=True) + def test_delete(self): table1 = self.tables.mytable -- cgit v1.2.1