summaryrefslogtreecommitdiffstats
path: root/tests/test_transpile.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_transpile.py')
-rw-r--r--tests/test_transpile.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_transpile.py b/tests/test_transpile.py
index 6355400..36e0aa6 100644
--- a/tests/test_transpile.py
+++ b/tests/test_transpile.py
@@ -507,14 +507,14 @@ FROM bar /* comment 5 */, tbl /* comment 6 */""",
more_than_max_errors = "(((("
expected_messages = (
- "Expecting ). Line 1, Col: 4.\n (((\033[4m(\033[0m\n\n"
"Required keyword: 'this' missing for <class 'sqlglot.expressions.Paren'>. Line 1, Col: 4.\n (((\033[4m(\033[0m\n\n"
"Expecting ). Line 1, Col: 4.\n (((\033[4m(\033[0m\n\n"
+ "Expecting ). Line 1, Col: 4.\n (((\033[4m(\033[0m\n\n"
"... and 2 more"
)
expected_errors = [
{
- "description": "Expecting )",
+ "description": "Required keyword: 'this' missing for <class 'sqlglot.expressions.Paren'>",
"line": 1,
"col": 4,
"start_context": "(((",
@@ -523,7 +523,7 @@ FROM bar /* comment 5 */, tbl /* comment 6 */""",
"into_expression": None,
},
{
- "description": "Required keyword: 'this' missing for <class 'sqlglot.expressions.Paren'>",
+ "description": "Expecting )",
"line": 1,
"col": 4,
"start_context": "(((",
@@ -533,7 +533,7 @@ FROM bar /* comment 5 */, tbl /* comment 6 */""",
},
]
# Also expect three trailing structured errors that match the first
- expected_errors += [expected_errors[0]] * 3
+ expected_errors += [expected_errors[1]] * 3
with self.assertRaises(ParseError) as ctx:
transpile(more_than_max_errors, error_level=ErrorLevel.RAISE)