Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Полищук Александр committed Sep 13, 2024
1 parent 084c809 commit 580a0ab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/drivers/test_clickhouse_dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 580a0ab

Please sign in to comment.