Skip to content

Commit

Permalink
Fix s3_settings fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Oct 31, 2024
1 parent 50684f3 commit aedcd1a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/tests/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ def s3_settings():
or "ZARR_S3_ACCESS_KEY_ID" not in os.environ
or "ZARR_S3_SECRET_ACCESS_KEY" not in os.environ
):
return None

yield S3Settings(
endpoint=os.environ["ZARR_S3_ENDPOINT"],
bucket_name=os.environ["ZARR_S3_BUCKET_NAME"],
access_key_id=os.environ["ZARR_S3_ACCESS_KEY_ID"],
secret_access_key=os.environ["ZARR_S3_SECRET_ACCESS_KEY"],
)
yield None
else:
yield S3Settings(
endpoint=os.environ["ZARR_S3_ENDPOINT"],
bucket_name=os.environ["ZARR_S3_BUCKET_NAME"],
access_key_id=os.environ["ZARR_S3_ACCESS_KEY_ID"],
secret_access_key=os.environ["ZARR_S3_SECRET_ACCESS_KEY"],
)


@pytest.fixture(scope="function")
Expand Down

0 comments on commit aedcd1a

Please sign in to comment.