Skip to content

Commit 426f62d

Browse files
committed
Skip minio client fixture teardown by default
1 parent 850ae19 commit 426f62d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/conftest.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def minio_client_bare(s3_creds):
437437

438438

439439
@pytest.fixture(scope="session")
440-
def minio_client(s3_creds, minio_client_bare):
440+
def minio_client(s3_creds, minio_client_bare, teardown=False):
441441
"""Initialize a MinIO client and create buckets for testing session."""
442442
# Setup MinIO bucket
443443
aws_region = "us-east-1"
@@ -447,6 +447,8 @@ def minio_client(s3_creds, minio_client_bare):
447447
if e.code != "BucketAlreadyOwnedByYou":
448448
raise e
449449

450+
if not teardown:
451+
return minio_client_bare
450452
yield minio_client_bare
451453

452454
# Teardown S3

0 commit comments

Comments
 (0)