Skip to content

Commit

Permalink
Tweak norm_sql function to retain single spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
MattFisher committed Dec 20, 2021
1 parent a6e1015 commit cbe82e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_redshift_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@


def norm_sql(sql):
r = sql
r = r.replace(' ', '')
r = r.replace('\n', '')
return r
return ' '.join(sql.split()).replace('( ', '(').replace(' )', ')').replace(' ;', ';')


class DatabaseWrapperTest(unittest.TestCase):
Expand Down

0 comments on commit cbe82e7

Please sign in to comment.