Fix reduced_min_part_size so that tests run
This commit is contained in:
parent
c4793fc1f9
commit
5ba8421242
@ -3,6 +3,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from six.moves.urllib.request import urlopen
|
from six.moves.urllib.request import urlopen
|
||||||
from six.moves.urllib.error import HTTPError
|
from six.moves.urllib.error import HTTPError
|
||||||
|
from functools import wraps
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
import boto
|
import boto
|
||||||
@ -29,6 +30,7 @@ def reduced_min_part_size(f):
|
|||||||
import moto.s3.models as s3model
|
import moto.s3.models as s3model
|
||||||
orig_size = s3model.UPLOAD_PART_MIN_SIZE
|
orig_size = s3model.UPLOAD_PART_MIN_SIZE
|
||||||
|
|
||||||
|
@wraps(f)
|
||||||
def wrapped(*args, **kwargs):
|
def wrapped(*args, **kwargs):
|
||||||
try:
|
try:
|
||||||
s3model.UPLOAD_PART_MIN_SIZE = REDUCED_PART_SIZE
|
s3model.UPLOAD_PART_MIN_SIZE = REDUCED_PART_SIZE
|
||||||
|
Loading…
Reference in New Issue
Block a user