From 580a0abfeb7ff1ec3ef98c6d0ecda7126b202c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=B8=D1=89=D1=83=D0=BA=20=D0=90=D0=BB?= =?UTF-8?q?=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Fri, 13 Sep 2024 13:24:27 +0300 Subject: [PATCH] linter fix --- tests/drivers/test_clickhouse_dialect.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/drivers/test_clickhouse_dialect.py b/tests/drivers/test_clickhouse_dialect.py index 9af4cc3..3c617a8 100644 --- a/tests/drivers/test_clickhouse_dialect.py +++ b/tests/drivers/test_clickhouse_dialect.py @@ -145,8 +145,14 @@ def test_enum_type_with_illegal_characters(self): empty_string = '' mro = 'mro' try: - self.dialect._get_column_type('col_name', f"Enum8('unknown' = -1, '{empty_string}' = 0, 'known' = 1, '{mro}' = 2)") - self.dialect._get_column_type('col_name', f"Enum8('unknown' = -1, '{mro}' = 0, 'known' = 1, '{empty_string}' = 2)") + self.dialect._get_column_type( + 'col_name', + f"Enum8('f' = -1, '{empty_string}' = 0, 'ok' = 1, '{mro}' = 2)" + ) + self.dialect._get_column_type( + 'col_name', + f"Enum8('f' = -1, '{mro}' = 0, 'ok' = 1, '{empty_string}' = 2)" + ) except ValueError as e: self.fail(f"Enum options parsing failed: {e}")