def reduced_min_part_size(f):
 import moto.s3.models as s3model
 orig_size = s3model.UPLOAD_PART_MIN_SIZE
 @wraps(f)
 def wrapped(*args, **kwargs):
  try:
   s3model.UPLOAD_PART_MIN_SIZE = REDUCED_PART_SIZE
   return f(*args, **kwargs)
  finally:
   s3model.UPLOAD_PART_MIN_SIZE = orig_size
 return wrapped

def reduced_min_part_size ( f ) : import moto . s3 . models as s3model orig_size = s3model . UPLOAD_PART_MIN_SIZE @ wraps ( f ) def wrapped ( * args , ** kwargs ) : try : s3model . UPLOAD_PART_MIN_SIZE = REDUCED_PART_SIZE return f ( * args , ** kwargs ) finally : s3model . UPLOAD_PART_MIN_SIZE = orig_size return wrapped
speed up tests by temporarily making the multipart minimum part size small .