From 772374735da27df1ddb907f4a0f5085b46dbe82b Mon Sep 17 00:00:00 2001 From: Khairi Hafsham Date: Thu, 2 Feb 2017 13:02:21 -0500 Subject: 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 --- test/sql/test_functions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/sql/test_functions.py') 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 " -- cgit v1.2.1