From: Diana Clarke Date: Sat, 30 Mar 2013 05:39:40 +0000 (-0400) Subject: whitespace X-Git-Tag: rel_0_8_1~25^2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa9dd6bb878573c970aeadad978a19053e550d1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git whitespace --- diff --git a/test/sql/test_update.py b/test/sql/test_update.py index 607666e990..a8df86cd21 100644 --- a/test/sql/test_update.py +++ b/test/sql/test_update.py @@ -97,7 +97,7 @@ class UpdateTest(_UpdateFromTestBase, fixtures.TablesTest, AssertsCompiledSQL): table1 = self.tables.mytable self.assert_compile( - update(table1, + update(table1, whereclause=table1.c.name == bindparam('crit'), values={table1.c.name: 'hi'}), 'UPDATE mytable SET name=:name WHERE mytable.name = :crit', @@ -119,7 +119,7 @@ class UpdateTest(_UpdateFromTestBase, fixtures.TablesTest, AssertsCompiledSQL): def test_update_7(self): table1 = self.tables.mytable - + self.assert_compile( update(table1, table1.c.myid == 12, values={table1.c.myid: 9}), 'UPDATE mytable ' @@ -165,7 +165,7 @@ class UpdateTest(_UpdateFromTestBase, fixtures.TablesTest, AssertsCompiledSQL): } self.assert_compile(update(table1, (table1.c.myid == func.hoho(4)) & - (table1.c.name == literal('foo') + + (table1.c.name == literal('foo') + table1.c.name + literal('lala')), values=values), 'UPDATE mytable '