summaryrefslogtreecommitdiff
path: root/test/sql/test_update.py
diff options
context:
space:
mode:
authorKhairi Hafsham <jumanjisama@gmail.com>2017-02-02 13:02:21 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2017-02-07 11:21:56 -0500
commit772374735da27df1ddb907f4a0f5085b46dbe82b (patch)
tree41f88c835a74d4665c97853ae8676a5181d61db3 /test/sql/test_update.py
parentd71f4b47186972c5248c94ee2d04364da95a0965 (diff)
downloadsqlalchemy-772374735da27df1ddb907f4a0f5085b46dbe82b.tar.gz
Make all tests to be PEP8 compliant
tested using pycodestyle version 2.2.0 Fixes: #3885 Change-Id: I5df43adc3aefe318f9eeab72a078247a548ec566 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/343
Diffstat (limited to 'test/sql/test_update.py')
-rw-r--r--test/sql/test_update.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/sql/test_update.py b/test/sql/test_update.py
index 033f2f680..71ac82ce0 100644
--- a/test/sql/test_update.py
+++ b/test/sql/test_update.py
@@ -51,7 +51,7 @@ class _UpdateFromTestBase(object):
(9, 'fred'),
(10, 'chuck')
),
- addresses = (
+ addresses=(
('id', 'user_id', 'name', 'email_address'),
(1, 7, 'x', 'jack@bean.com'),
(2, 8, 'x', 'ed@wood.com'),
@@ -59,7 +59,7 @@ class _UpdateFromTestBase(object):
(4, 8, 'x', 'ed@lala.com'),
(5, 9, 'x', 'fred@fred.com')
),
- dingalings = (
+ dingalings=(
('id', 'address_id', 'data'),
(1, 2, 'ding 1/2'),
(2, 5, 'ding 2/5')
@@ -340,13 +340,14 @@ class UpdateTest(_UpdateFromTestBase, fixtures.TablesTest, AssertsCompiledSQL):
def test_where_empty(self):
table1 = self.tables.mytable
self.assert_compile(
- table1.update().where(
- and_()),
- "UPDATE mytable SET myid=:myid, name=:name, description=:description")
+ table1.update().where(and_()),
+ "UPDATE mytable SET myid=:myid, name=:name, "
+ "description=:description")
self.assert_compile(
table1.update().where(
or_()),
- "UPDATE mytable SET myid=:myid, name=:name, description=:description")
+ "UPDATE mytable SET myid=:myid, name=:name, "
+ "description=:description")
def test_prefix_with(self):
table1 = self.tables.mytable