mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Add test for /* multi line */ comment, refs #1860
This commit is contained in:
parent
b597bb6b3e
commit
6958e21b5c
1 changed files with 1 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ def test_validate_sql_select_bad(bad_sql):
|
||||||
" /* comment */\nselect 1",
|
" /* comment */\nselect 1",
|
||||||
" /* comment */select 1",
|
" /* comment */select 1",
|
||||||
"/* comment */\n -- another\n /* one more */ select 1",
|
"/* comment */\n -- another\n /* one more */ select 1",
|
||||||
|
"/* This comment \n has multiple lines */\nselect 1",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_validate_sql_select_good(good_sql):
|
def test_validate_sql_select_good(good_sql):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue