summaryrefslogtreecommitdiffstats
path: root/tests/test_transpile.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 07:31:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 07:31:50 +0000
commit1fb60a37d31eacbac62ddafde51b829522925694 (patch)
tree5c04a33630f7a2cd4cff248e965053f97ec3e4ac /tests/test_transpile.py
parentAdding upstream version 11.4.1. (diff)
downloadsqlglot-upstream/11.4.5.tar.xz
sqlglot-upstream/11.4.5.zip
Adding upstream version 11.4.5.upstream/11.4.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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)