Skip to content

Commit

Permalink
Skip minio client fixture teardown by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ethho committed Sep 18, 2024
1 parent 850ae19 commit 426f62d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def minio_client_bare(s3_creds):


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

if not teardown:
return minio_client_bare
yield minio_client_bare

# Teardown S3
Expand Down

0 comments on commit 426f62d

Please sign in to comment.