@pytest.mark.parametrize('bad_sql', ['update blah;', '-- sql comment to skip\nupdate blah;', "update blah set some_column='# Hello there\n\n* This is a list\n* of items\n--\n[And a link](https://github.com/simonw/datasette-render-markdown).'\nas demo_markdown", 'PRAGMA case_sensitive_like = true', "SELECT * FROM pragma_not_on_allow_list('idx52')"])
def test_validate_sql_select_bad(bad_sql):
    with pytest.raises(utils.InvalidSql):
        utils.validate_sql_select(bad_sql)
@pytest.mark.parametrize('bad_sql', ['update blah;', '-- sql comment to skip\nupdate blah;', "update blah set some_column='# Hello there\n\n* This is a list\n* of items\n--\n[And a link](https://github.com/simonw/datasette-render-markdown).'\nas demo_markdown", 'PRAGMA case_sensitive_like = true', "SELECT * FROM pragma_not_on_allow_list('idx52')"])
def test_validate_sql_select_bad(bad_sql):
    with pytest.raises(utils.InvalidSql):
        utils.validate_sql_select(bad_sql)