diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_regressions.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_regressions.py b/tests/test_regressions.py index ba908d3..d646325 100644 --- a/tests/test_regressions.py +++ b/tests/test_regressions.py @@ -316,7 +316,10 @@ def test_token_next_doesnt_ignore_skip_cm(): assert tok.value == 'select' -def test_issue284_as_grouping(): - sql = 'SELECT x AS' - p = sqlparse.parse(sql)[0] - assert sql == str(p) +@pytest.mark.parametrize('s', [ + 'SELECT x AS', + 'AS' +]) +def test_issue284_as_grouping(s): + p = sqlparse.parse(s)[0] + assert s == str(p) |
