From 459527741207897e8944434cd74934ff25e75276 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 26 Sep 2023 14:14:58 +0200 Subject: [PATCH] Fix test using minio --- backend/tests/test_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/tests/test_api.py b/backend/tests/test_api.py index e6a71778..fd627033 100644 --- a/backend/tests/test_api.py +++ b/backend/tests/test_api.py @@ -23,14 +23,14 @@ 'Effect': 'Allow', 'Principal': '*', 'Action': ['s3:GetObject'], - 'Resource': f"arn:aws:s3:::{'S3_BUCKET_NAME'}/*" + 'Resource': f"arn:aws:s3:::{S3_BUCKET_NAME}/*" }] } def create_bucket(): - s3 = boto3.resource("s3", endpoint_url="S3_URL_ENDPOINT") - bucket = s3.Bucket("S3_BUCKET_NAME") + s3 = boto3.resource("s3", endpoint_url=S3_URL_ENDPOINT) + bucket = s3.Bucket(S3_BUCKET_NAME) if bucket.creation_date is None: bucket.create() bucket.Policy().put(Policy=json.dumps(BUCKET_POLICY))