summaryrefslogtreecommitdiff
path: root/tests/test_format.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2016-09-17 15:35:19 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2016-09-17 15:35:19 +0200
commitb8f73564b747cdb250fcc75fa7aa02f56d6484e0 (patch)
tree7d1d89cfa946304b6bc3c66cd96825fc6d5f7400 /tests/test_format.py
parent4d05b441fcb801d320ac52ce90465b74d419ceac (diff)
downloadsqlparse-b8f73564b747cdb250fcc75fa7aa02f56d6484e0.tar.gz
Better formatting when using comma-first notation (issue141).
Diffstat (limited to 'tests/test_format.py')
-rw-r--r--tests/test_format.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_format.py b/tests/test_format.py
index 67377ab..342fe09 100644
--- a/tests/test_format.py
+++ b/tests/test_format.py
@@ -436,12 +436,12 @@ class TestFormatReindent(object):
s = 'select foo, bar, baz from table where foo in (1, 2,3)'
assert f(s) == '\n'.join([
'select foo',
- ' , bar',
- ' , baz',
+ ' , bar',
+ ' , baz',
'from table',
'where foo in (1',
- ' , 2',
- ' , 3)'])
+ ' , 2',
+ ' , 3)'])
def test_identifier_list_with_functions(self):
f = lambda sql: sqlparse.format(sql, reindent=True)