diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-04-03 07:31:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-04-03 07:31:54 +0000 |
commit | b38d717d5933fdae3fe85c87df7aee9a251fb58e (patch) | |
tree | 6db21a44ffea4c832dcab29688bfaf1c1dc124f9 /tests/test_transpile.py | |
parent | Releasing debian version 11.4.1-1. (diff) | |
download | sqlglot-b38d717d5933fdae3fe85c87df7aee9a251fb58e.tar.xz sqlglot-b38d717d5933fdae3fe85c87df7aee9a251fb58e.zip |
Merging upstream version 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.py | 8 |
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) |