summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYago Riveiro <yago.riveiro@gmail.com>2013-04-26 18:31:52 +0100
committerYago Riveiro <yago.riveiro@gmail.com>2013-04-26 18:31:52 +0100
commit9ea900cac02c60beb61a688539a17c552cf21373 (patch)
tree0661395ead618197bdbb00ffff604f14b18c5c7b /tests
parent572b69c1e630506d81ef594b15febc37bb011318 (diff)
downloadsqlparse-9ea900cac02c60beb61a688539a17c552cf21373.tar.gz
Added test to STRAIGHT_JOIN token.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_format.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_format.py b/tests/test_format.py
index 17bdc17..1d92f3d 100644
--- a/tests/test_format.py
+++ b/tests/test_format.py
@@ -158,7 +158,11 @@ class TestFormatReindent(TestCaseBase):
'from foo',
'left outer join bar on 1 = 2']
))
-
+ s = 'select * from foo straight_join bar on 1 = 2'
+ self.ndiffAssertEqual(f(s), '\n'.join(['select *',
+ 'from foo',
+ 'straight_join bar on 1 = 2']
+ ))
def test_identifier_list(self):
f = lambda sql: sqlparse.format(sql, reindent=True)
s = 'select foo, bar, baz from table1, table2 where 1 = 2'