MCPcopy Create free account
hub / github.com/andialbrecht/sqlparse / test_preserve_ws

Method test_preserve_ws

tests/test_format.py:153–157  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 sqlparse.format(s, strip_whitespace=None)
152
153 def test_preserve_ws(self):
154 # preserve at least one whitespace after subgroups
155 f = lambda sql: sqlparse.format(sql, strip_whitespace=True)
156 s = 'select\n* /* foo */ from bar '
157 assert f(s) == 'select * /* foo */ from bar'
158
159 def test_notransform_of_quoted_crlf(self):
160 # Make sure that CR/CR+LF characters inside string literals don't get

Callers

nothing calls this directly

Calls 1

fFunction · 0.85

Tested by

no test coverage detected