Skip to content

Instantly share code, notes, and snippets.

View StuMason's full-sized avatar
🏋️‍♂️
Testing

Stu Mason StuMason

🏋️‍♂️
Testing
  • Folkestone
View GitHub Profile
@grantcooksey
grantcooksey / stubber.py
Last active February 8, 2023 11:21
Mocking an S3 bucket using Stubber
import io
import json
import botocore.session
from botocore.stub import Stubber
from botocore.response import StreamingBody
expected_message = {
'message': 'readme'
}