diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-03 07:37:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-03 07:37:50 +0000 |
commit | 8b1fb8d8676e832d02b99bb8e69f6897dd10c0f6 (patch) | |
tree | d31426ac93b330e755f0b500704e236b9a62dc15 /tests/test_generator.py | |
parent | Releasing debian version 25.16.1-1. (diff) | |
download | sqlglot-8b1fb8d8676e832d02b99bb8e69f6897dd10c0f6.tar.xz sqlglot-8b1fb8d8676e832d02b99bb8e69f6897dd10c0f6.zip |
Merging upstream version 25.18.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_generator.py')
-rw-r--r-- | tests/test_generator.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_generator.py b/tests/test_generator.py index e21aa25..7609831 100644 --- a/tests/test_generator.py +++ b/tests/test_generator.py @@ -1,4 +1,3 @@ -import time import unittest from sqlglot import exp, parse_one @@ -46,8 +45,5 @@ class TestGenerator(unittest.TestCase): assert parse_one("X as 1").sql(identify="safe") == 'X AS "1"' def test_generate_nested_binary(self): - sql = "SELECT 'foo'" + (" || 'foo'" * 500) - - now = time.time() - self.assertEqual(parse_one(sql).sql(), sql) - self.assertLessEqual(time.time() - now, 0.1) + sql = "SELECT 'foo'" + (" || 'foo'" * 1000) + self.assertEqual(parse_one(sql).sql(copy=False), sql) |