Merging upstream version 9.0.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
ebb36a5fc5
commit
4483b8ff47
87 changed files with 7994 additions and 421 deletions
|
@ -81,7 +81,7 @@ class TestParser(unittest.TestCase):
|
|||
self.assertIsInstance(ignore.expression(exp.Hint, y=""), exp.Hint)
|
||||
self.assertIsInstance(ignore.expression(exp.Hint), exp.Hint)
|
||||
|
||||
default = Parser()
|
||||
default = Parser(error_level=ErrorLevel.RAISE)
|
||||
self.assertIsInstance(default.expression(exp.Hint, expressions=[""]), exp.Hint)
|
||||
default.expression(exp.Hint, y="")
|
||||
default.expression(exp.Hint)
|
||||
|
@ -139,12 +139,12 @@ class TestParser(unittest.TestCase):
|
|||
)
|
||||
|
||||
assert expression.expressions[0].name == "annotation1"
|
||||
assert expression.expressions[1].name == "annotation2:testing "
|
||||
assert expression.expressions[1].name == "annotation2:testing"
|
||||
assert expression.expressions[2].name == "test#annotation"
|
||||
assert expression.expressions[3].name == "annotation3"
|
||||
assert expression.expressions[4].name == "annotation4"
|
||||
assert expression.expressions[5].name == ""
|
||||
assert expression.expressions[6].name == " space"
|
||||
assert expression.expressions[6].name == "space"
|
||||
|
||||
def test_pretty_config_override(self):
|
||||
self.assertEqual(parse_one("SELECT col FROM x").sql(), "SELECT col FROM x")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue