Skip to content

Commit 9ea900c

Browse files
committed
Added test to STRAIGHT_JOIN token.
1 parent 572b69c commit 9ea900c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_format.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ def test_join(self):
158158
'from foo',
159159
'left outer join bar on 1 = 2']
160160
))
161-
161+
s = 'select * from foo straight_join bar on 1 = 2'
162+
self.ndiffAssertEqual(f(s), '\n'.join(['select *',
163+
'from foo',
164+
'straight_join bar on 1 = 2']
165+
))
162166
def test_identifier_list(self):
163167
f = lambda sql: sqlparse.format(sql, reindent=True)
164168
s = 'select foo, bar, baz from table1, table2 where 1 = 2'

0 commit comments

Comments
 (0)