diff options
| author | Simon Heisterkamp <simon@heisterkamp.dk> | 2022-11-30 14:51:58 +0000 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2023-01-02 08:54:47 +0100 |
| commit | 9a1cb5dddd1545c30b1e3a2c6f5d3514d079d93e (patch) | |
| tree | 07bf50ff251f9fe0f092a166373db47e1a4d62e7 /tests | |
| parent | 8b789f286e1b6cbf05c15020ea7544cb7f02f8f7 (diff) | |
| download | sqlparse-9a1cb5dddd1545c30b1e3a2c6f5d3514d079d93e.tar.gz | |
configurable syntax
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_keywords.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_keywords.py b/tests/test_keywords.py index d4ded4b..a3b1b38 100644 --- a/tests/test_keywords.py +++ b/tests/test_keywords.py @@ -2,6 +2,7 @@ import pytest from sqlparse import tokens from sqlparse.keywords import SQL_REGEX +from sqlparse.lexer import Lexer class TestSQLREGEX: @@ -9,5 +10,5 @@ class TestSQLREGEX: '1.', '-1.', '.1', '-.1']) def test_float_numbers(self, number): - ttype = next(tt for action, tt in SQL_REGEX if action(number)) + ttype = next(tt for action, tt in Lexer()._SQL_REGEX if action(number)) assert tokens.Number.Float == ttype |
