We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850ae19 commit 426f62dCopy full SHA for 426f62d
tests/conftest.py
@@ -437,7 +437,7 @@ def minio_client_bare(s3_creds):
437
438
439
@pytest.fixture(scope="session")
440
-def minio_client(s3_creds, minio_client_bare):
+def minio_client(s3_creds, minio_client_bare, teardown=False):
441
"""Initialize a MinIO client and create buckets for testing session."""
442
# Setup MinIO bucket
443
aws_region = "us-east-1"
@@ -447,6 +447,8 @@ def minio_client(s3_creds, minio_client_bare):
447
if e.code != "BucketAlreadyOwnedByYou":
448
raise e
449
450
+ if not teardown:
451
+ return minio_client_bare
452
yield minio_client_bare
453
454
# Teardown S3
0 commit comments