Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
genzgd committed Sep 24, 2024
1 parent 0475afd commit 44e1db4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion clickhouse_connect/driver/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,4 +520,3 @@ def close(self):
if self._owns_pool_manager:
self.http.clear()
all_managers.pop(self.http, None)

6 changes: 3 additions & 3 deletions tests/integration_tests/test_session_id.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import uuid

import pytest

from typing import Callable

from clickhouse_connect.driver import create_async_client, create_client
import pytest

from clickhouse_connect.driver import create_async_client
from tests.integration_tests.conftest import TestConfig

SESSION_KEY = 'session_id'
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def test_csv_upload(test_client: Client, table_context: Callable):
data_file = f'{Path(__file__).parent}/movies.csv.gz'
with table_context('test_csv_upload', ['movie String', 'year UInt16', 'rating Decimal32(3)']):
insert_result = insert_file(test_client, 'test_csv_upload', data_file,
insert_file(test_client, 'test_csv_upload', data_file,
settings={'input_format_allow_errors_ratio': .2,
'input_format_allow_errors_num': 5})
res = test_client.query(
Expand All @@ -22,7 +22,7 @@ def test_parquet_upload(test_config: TestConfig, test_client: Client, table_cont
data_file = f'{Path(__file__).parent}/movies.parquet'
full_table = f'{test_config.test_database}.test_parquet_upload'
with table_context(full_table, ['movie String', 'year UInt16', 'rating Float64']):
insert_result = insert_file(test_client, full_table, data_file, 'Parquet',
insert_file(test_client, full_table, data_file, 'Parquet',
settings={'output_format_parquet_string_as_string': 1})
res = test_client.query(
f'SELECT count() as count, sum(rating) as rating, max(year) as year FROM {full_table}').first_item
Expand Down

0 comments on commit 44e1db4

Please sign in to comment.