summaryrefslogtreecommitdiffstats
path: root/tests/test_helper.py
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2023-12-10 10:46:01 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2023-12-10 10:46:01 +0000
commit8fe30fd23dc37ec3516e530a86d1c4b604e71241 (patch)
tree6e2ebbf565b0351fd0f003f488a8339e771ad90c /tests/test_helper.py
parentReleasing debian version 19.0.1-1. (diff)
downloadsqlglot-8fe30fd23dc37ec3516e530a86d1c4b604e71241.tar.xz
sqlglot-8fe30fd23dc37ec3516e530a86d1c4b604e71241.zip
Merging upstream version 20.1.0.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'tests/test_helper.py')
-rw-r--r--tests/test_helper.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/test_helper.py b/tests/test_helper.py
index a8872e9..e17b281 100644
--- a/tests/test_helper.py
+++ b/tests/test_helper.py
@@ -1,6 +1,5 @@
import unittest
-from sqlglot.dialects import BigQuery, Dialect, Snowflake
from sqlglot.helper import merge_ranges, name_sequence, tsort
@@ -30,32 +29,6 @@ class TestHelper(unittest.TestCase):
}
)
- def test_compare_dialects(self):
- bigquery_class = Dialect["bigquery"]
- bigquery_object = BigQuery()
- bigquery_string = "bigquery"
-
- snowflake_class = Dialect["snowflake"]
- snowflake_object = Snowflake()
- snowflake_string = "snowflake"
-
- self.assertEqual(snowflake_class, snowflake_class)
- self.assertEqual(snowflake_class, snowflake_object)
- self.assertEqual(snowflake_class, snowflake_string)
- self.assertEqual(snowflake_object, snowflake_object)
- self.assertEqual(snowflake_object, snowflake_string)
-
- self.assertNotEqual(snowflake_class, bigquery_class)
- self.assertNotEqual(snowflake_class, bigquery_object)
- self.assertNotEqual(snowflake_class, bigquery_string)
- self.assertNotEqual(snowflake_object, bigquery_object)
- self.assertNotEqual(snowflake_object, bigquery_string)
-
- self.assertTrue(snowflake_class in {"snowflake", "bigquery"})
- self.assertTrue(snowflake_object in {"snowflake", "bigquery"})
- self.assertFalse(snowflake_class in {"bigquery", "redshift"})
- self.assertFalse(snowflake_object in {"bigquery", "redshift"})
-
def test_name_sequence(self):
s1 = name_sequence("a")
s2 = name_sequence("b")