diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2019-03-11 12:45:11 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2019-03-11 12:45:11 +0100 |
| commit | cff61bb93a080c1becbf2c6cd33911bc206cf587 (patch) | |
| tree | 3683be35ea59d970be8ff0f46c77151615405636 /tests/test_tokenize.py | |
| parent | fcbccb849b56f29fb7f3ddb958d3e10279f8d939 (diff) | |
| download | sqlparse-cff61bb93a080c1becbf2c6cd33911bc206cf587.tar.gz | |
Avoid formatting of psql commands (fixes #469).
Diffstat (limited to 'tests/test_tokenize.py')
| -rw-r--r-- | tests/test_tokenize.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_tokenize.py b/tests/test_tokenize.py index 23a5157..fcd1102 100644 --- a/tests/test_tokenize.py +++ b/tests/test_tokenize.py @@ -195,3 +195,9 @@ def test_parse_order_by(): p = sqlparse.parse('ORDER BY')[0] assert len(p.tokens) == 1 assert p.tokens[0].ttype is T.Keyword + + +def test_cli_commands(): + p = sqlparse.parse('\\copy')[0] + assert len(p.tokens) == 1 + assert p.tokens[0].ttype == T.Command |
