We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce2268 commit ff8d598Copy full SHA for ff8d598
1 file changed
tests/test_regressions.py
@@ -373,3 +373,20 @@ def test_issue469_copy_as_psql_command():
373
'\\copy select * from foo',
374
keyword_case='upper', identifier_case='capitalize')
375
assert formatted == '\\copy SELECT * FROM Foo'
376
+
377
378
+@pytest.mark.xfail(reason='Needs to be fixed')
379
+def test_issue484_comments_and_newlines():
380
+ formatted = sqlparse.format('\n'.join([
381
+ 'Create table myTable',
382
+ '(',
383
+ ' myId TINYINT NOT NULL, --my special comment',
384
+ ' myName VARCHAR2(100) NOT NULL',
385
+ ')']),
386
+ strip_comments=True)
387
+ assert formatted == ('\n'.join([
388
389
390
+ ' myId TINYINT NOT NULL,',
391
392
+ ')']))
0 commit comments