File: test_util.py

package info (click to toggle)
python-clickhouse-driver 0.2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,516 kB
  • sloc: python: 10,950; pascal: 42; makefile: 31; sh: 3
file content (10 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from clickhouse_driver.columns.util import get_inner_spec
from tests.testcase import BaseTestCase


class UtilTestCase(BaseTestCase):
    def test_get_inner_spec(self):
        inner = 'a Tuple(Array(Int8), Array(Int64)), b Nullable(String)'
        self.assertEqual(
            get_inner_spec('Nested', 'Nested({}) dummy '.format(inner)), inner
        )