diff options
| author | Yago Riveiro <yago.riveiro@gmail.com> | 2013-04-26 18:31:52 +0100 |
|---|---|---|
| committer | Yago Riveiro <yago.riveiro@gmail.com> | 2013-04-26 18:31:52 +0100 |
| commit | 9ea900cac02c60beb61a688539a17c552cf21373 (patch) | |
| tree | 0661395ead618197bdbb00ffff604f14b18c5c7b /tests | |
| parent | 572b69c1e630506d81ef594b15febc37bb011318 (diff) | |
| download | sqlparse-9ea900cac02c60beb61a688539a17c552cf21373.tar.gz | |
Added test to STRAIGHT_JOIN token.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_format.py | 6 |
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' |
