Skip to content

Instantly share code, notes, and snippets.

@zscholl
zscholl / keybase.md
Created June 26, 2019 16:06
Keybase Verification

Keybase proof

I hereby claim:

  • I am zscholl on github.
  • I am zscholl (https://keybase.io/zscholl) on keybase.
  • I have a public key ASDulOyYQCpav0EuUjLW-tsRDKUCGjdQTlvkyXzTRlvlwAo

To claim this, I am signing this object:

@zscholl
zscholl / test_s3.py
Created May 13, 2020 16:55
Example Moto unittest
import boto3
from moto import mock_s3
from mymodule import MyModel
@mock_s3
def test_my_model_save():
conn = boto3.resource('s3', region_name='us-east-1')
# We need to create the bucket since this is all in Moto's 'virtual' AWS account
conn.create_bucket(Bucket='mybucket')