conftest_7.py 290 B

12345678
  1. def uploaded_episodes(mocked_s3, bucket, folder):
  2. mocked_s3.create_bucket(Bucket=bucket)
  3. for i in range(1, 11):
  4. size = 1000 + 100 * i
  5. mocked_s3.put_object(
  6. Bucket=bucket,
  7. Key='{}/episode{}.mp3'.format(folder, i),
  8. Body='x' * size,)