diff options
| author | Andreas Albrecht <andreas.albrecht@prounix.de> | 2010-01-11 15:24:05 +0100 |
|---|---|---|
| committer | Andreas Albrecht <andreas.albrecht@prounix.de> | 2010-01-11 15:24:05 +0100 |
| commit | f5086aacc638ef077d01542e1a636f2bbd9aa7ba (patch) | |
| tree | 28360b4f976f77bda5ccb53f613b08bf880a90d7 | |
| parent | a2715281c1d45b5b341ef12f5bf9433be4ed22e2 (diff) | |
| download | sqlparse-f5086aacc638ef077d01542e1a636f2bbd9aa7ba.tar.gz | |
Fix test case for CASE reindent.
| -rw-r--r-- | tests/test_format.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_format.py b/tests/test_format.py index a430381..88693c0 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -172,9 +172,10 @@ class TestFormatReindent(TestCaseBase): def test_case(self): f = lambda sql: sqlparse.format(sql, reindent=True) s = 'case when foo = 1 then 2 when foo = 3 then 4 else 5 end' - self.ndiffAssertEqual(f(s), '\n'.join(['case when foo = 1 then 2', - ' when foo = 3 then 4', - ' else 5', + self.ndiffAssertEqual(f(s), '\n'.join(['case', + ' when foo = 1 then 2', + ' when foo = 3 then 4', + ' else 5', 'end'])) def test_nested_identifier_list(self): # issue4 |
