diff options
author | Khairi Hafsham <jumanjisama@gmail.com> | 2017-02-02 13:02:21 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-02-07 11:21:56 -0500 |
commit | 772374735da27df1ddb907f4a0f5085b46dbe82b (patch) | |
tree | 41f88c835a74d4665c97853ae8676a5181d61db3 /test/sql/test_functions.py | |
parent | d71f4b47186972c5248c94ee2d04364da95a0965 (diff) | |
download | sqlalchemy-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_functions.py')
-rw-r--r-- | test/sql/test_functions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sql/test_functions.py b/test/sql/test_functions.py index 0074d789b..272bd876e 100644 --- a/test/sql/test_functions.py +++ b/test/sql/test_functions.py @@ -384,7 +384,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): def test_funcfilter_criterion(self): self.assert_compile( func.count(1).filter( - table1.c.name != None + table1.c.name != None # noqa ), "count(:count_1) FILTER (WHERE mytable.name IS NOT NULL)" ) @@ -392,7 +392,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): def test_funcfilter_compound_criterion(self): self.assert_compile( func.count(1).filter( - table1.c.name == None, + table1.c.name == None, # noqa table1.c.myid > 0 ), "count(:count_1) FILTER (WHERE mytable.name IS NULL AND " @@ -402,7 +402,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): def test_funcfilter_label(self): self.assert_compile( select([func.count(1).filter( - table1.c.description != None + table1.c.description != None # noqa ).label('foo')]), "SELECT count(:count_1) FILTER (WHERE mytable.description " "IS NOT NULL) AS foo FROM mytable" @@ -414,7 +414,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): self.assert_compile( select([ func.max(table1.c.name).filter( - literal_column('description') != None + literal_column('description') != None # noqa ) ]), "SELECT max(mytable.name) FILTER (WHERE description " |