config buckets

This commit is contained in:
Jim Moffet
2022-06-23 14:08:29 -07:00
parent ddd13b9995
commit e17c26d1f6
5 changed files with 8 additions and 8 deletions

View File

@@ -107,13 +107,13 @@ def test_get_letter_s3_object_raises_custom_error(
expected_exception
):
bucket_name = current_app.config['TRANSIENT_UPLOADED_LETTERS']
s3 = boto3.client('s3', region_name='eu-west-1')
s3 = boto3.client('s3', region_name='us-west-2')
# bucket not existing will trigger some other error
if will_raise_custom_error:
s3.create_bucket(
Bucket=bucket_name,
CreateBucketConfiguration={'LocationConstraint': 'eu-west-1'}
CreateBucketConfiguration={'LocationConstraint': 'us-west-2'}
)
with pytest.raises(expected_exception):

View File

@@ -24,7 +24,7 @@ data = {'data': 'some_data'}
filename = 'test.png'
svg_filename = 'test.svg'
upload_id = 'test_uuid'
region = 'eu-west1'
region = 'us-west-2'
@pytest.fixture