summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-04-28 15:03:33 +0200
committerJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-04-28 15:03:33 +0200
commita8ded6465322b3b6f9b6eb7299172268b4e4bd40 (patch)
treeabe6ffe44cfb82a02dc73655bdd9db240c0b5200 /tests
parent28f9c777545bb18fd3141568e2a25de685c3c30f (diff)
downloadsqlparse-a8ded6465322b3b6f9b6eb7299172268b4e4bd40.tar.gz
Put common code from Python and PHP output filters in OutputFilter
Diffstat (limited to 'tests')
-rw-r--r--tests/test_format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_format.py b/tests/test_format.py
index c9c6f46..0ec2192 100644
--- a/tests/test_format.py
+++ b/tests/test_format.py
@@ -90,7 +90,7 @@ class TestFormatReindent(TestCaseBase):
self.assertRaises(sqlparse.SQLParseError, sqlparse.format, 'foo',
reindent=True, indent_width='foo')
self.assertRaises(sqlparse.SQLParseError, sqlparse.format, 'foo',
- reindent=True, indent_width=-12)
+ reindent=True, indent_width= -12)
def test_stmts(self):
f = lambda sql: sqlparse.format(sql, reindent=True)
@@ -259,7 +259,7 @@ class TestOutputFormat(TestCaseBase):
self.ndiffAssertEqual(f(sql), '$sql = "select * from foo;";')
f = lambda sql: sqlparse.format(sql, output_format='php',
reindent=True)
- self.ndiffAssertEqual(f(sql), ('$sql = "select * ";\n'
+ self.ndiffAssertEqual(f(sql), ('$sql = "select * ";\n'
'$sql .= "from foo;";'))
def test_sql(self): # "sql" is an allowed option but has no effect