Skip to content

Commit 7cd5c8d

Browse files
committed
chore(fix): linting fixes based on upstream changes
1 parent 877ff21 commit 7cd5c8d

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

tests/integration/test_adapters/test_asyncpg/test_storage_bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def test_asyncpg_storage_bridge_with_minio(
6060
assert rows == [(1, "north"), (2, "south"), (3, "east")]
6161

6262
object_name = f"{prefix}/asyncpg/export.parquet"
63-
stat = minio_client.stat_object(minio_default_bucket_name, object_name)
63+
stat = minio_client.stat_object(bucket_name=minio_default_bucket_name, object_name=object_name)
6464
object_size = stat.size if stat.size is not None else 0
6565
assert object_size > 0
6666
finally:

tests/integration/test_adapters/test_duckdb/test_storage_bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_duckdb_storage_bridge_with_minio(
6060
assert rows == [(1, "alpha"), (2, "beta"), (3, "gamma")]
6161

6262
object_name = f"{prefix}/duckdb/export.parquet"
63-
stat = minio_client.stat_object(minio_default_bucket_name, object_name)
63+
stat = minio_client.stat_object(bucket_name=minio_default_bucket_name, object_name=object_name)
6464
object_size = stat.size if stat.size is not None else 0
6565
assert object_size > 0
6666
finally:

tests/integration/test_adapters/test_psqlpy/test_storage_bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def test_psqlpy_storage_bridge_with_minio(
5656
assert rows == [{"id": 1, "label": "delta"}, {"id": 2, "label": "omega"}, {"id": 3, "label": "zeta"}]
5757

5858
object_name = f"{prefix}/psqlpy/export.parquet"
59-
stat = minio_client.stat_object(minio_default_bucket_name, object_name)
59+
stat = minio_client.stat_object(bucket_name=minio_default_bucket_name, object_name=object_name)
6060
object_size = stat.size if stat.size is not None else 0
6161
assert object_size > 0
6262
finally:

tests/integration/test_adapters/test_psycopg/test_storage_bridge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_psycopg_sync_storage_bridge_with_minio(
8787
assert result.data == [{"id": 1, "label": "alpha"}, {"id": 2, "label": "beta"}, {"id": 3, "label": "gamma"}]
8888

8989
object_name = f"{prefix}/psycopg_sync/export.parquet"
90-
stat = minio_client.stat_object(minio_default_bucket_name, object_name)
90+
stat = minio_client.stat_object(bucket_name=minio_default_bucket_name, object_name=object_name)
9191
object_size = stat.size if stat.size is not None else 0
9292
assert object_size > 0
9393
finally:
@@ -144,7 +144,7 @@ async def test_psycopg_async_storage_bridge_with_minio(
144144
assert rows == [{"id": 1, "label": "north"}, {"id": 2, "label": "south"}, {"id": 3, "label": "east"}]
145145

146146
object_name = f"{prefix}/psycopg_async/export.parquet"
147-
stat = minio_client.stat_object(minio_default_bucket_name, object_name)
147+
stat = minio_client.stat_object(bucket_name=minio_default_bucket_name, object_name=object_name)
148148
object_size = stat.size if stat.size is not None else 0
149149
assert object_size > 0
150150
finally:

tests/integration/test_storage/test_storage_integration.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ def test_fsspec_s3_basic_operations(
175175
) -> None:
176176
"""Test FSSpec S3 backend basic operations."""
177177
# Ensure bucket exists (following Advanced Alchemy pattern)
178-
assert minio_client.bucket_exists(minio_default_bucket_name), f"Bucket {minio_default_bucket_name} does not exist"
178+
assert minio_client.bucket_exists(bucket_name=minio_default_bucket_name), (
179+
f"Bucket {minio_default_bucket_name} does not exist"
180+
)
179181

180182
# Test write and read text
181183
test_path = "integration_test/test.txt"
@@ -269,7 +271,9 @@ def test_obstore_s3_basic_operations(
269271
) -> None:
270272
"""Test ObStore S3 backend basic operations."""
271273
# Ensure bucket exists (following Advanced Alchemy pattern)
272-
assert minio_client.bucket_exists(minio_default_bucket_name), f"Bucket {minio_default_bucket_name} does not exist"
274+
assert minio_client.bucket_exists(bucket_name=minio_default_bucket_name), (
275+
f"Bucket {minio_default_bucket_name} does not exist"
276+
)
273277

274278
test_path = "integration_test/obstore_test.txt"
275279

0 commit comments

Comments
 (0)