Skip to content

Commit 779cc00

Browse files
committed
Fix tests
1 parent ec0941a commit 779cc00

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/fixtures/localstack.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def credentials(floci, cleanup_credentials):
5353
os.environ["AWS_ACCESS_KEY_ID"] = "test"
5454
os.environ["AWS_SECRET_ACCESS_KEY"] = "test"
5555
os.environ["AWS_REGION"] = "eu-west-1"
56+
os.environ["AWS_DEFAULT_REGION"] = "eu-west-1"
5657
os.environ["AWS_ENDPOINT_URL"] = floci
5758

5859

@@ -64,6 +65,8 @@ def cleanup_credentials():
6465
del os.environ["AWS_SECRET_ACCESS_KEY"]
6566
if os.environ.get("AWS_REGION"):
6667
del os.environ["AWS_REGION"]
68+
if os.environ.get("AWS_DEFAULT_REGION"):
69+
del os.environ["AWS_DEFAULT_REGION"]
6770
if os.environ.get("AWS_ENDPOINT_URL"):
6871
del os.environ["AWS_ENDPOINT_URL"]
6972
if os.environ.get("ASSUME_ROLE_ARN"):

tests/test_remotehandler_s3_transfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def setup_bucket(credentials, s3_client):
462462
subprocess.run(
463463
["awslocal", "s3", "rb", f"s3://{bucket}", "--force"], check=False
464464
)
465-
subprocess.run(["awslocal", "s3", "mb", f"s3://{bucket}"], check=False)
465+
subprocess.run(["awslocal", "s3", "mb", f"s3://{bucket}"], check=True)
466466

467467

468468
def test_remote_handler():

0 commit comments

Comments
 (0)