mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
config buckets
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user