Update README.md (#7266)
This commit is contained in:
parent
0b4cedc44b
commit
496c1cd559
@ -45,11 +45,11 @@ Now see how you could test it with Moto:
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
import boto3
|
import boto3
|
||||||
from moto import mock_s3
|
from moto import mock_aws
|
||||||
from mymodule import MyModel
|
from mymodule import MyModel
|
||||||
|
|
||||||
|
|
||||||
@mock_s3
|
@mock_aws
|
||||||
def test_my_model_save():
|
def test_my_model_save():
|
||||||
conn = boto3.resource("s3", region_name="us-east-1")
|
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
|
# We need to create the bucket since this is all in Moto's 'virtual' AWS account
|
||||||
|
Loading…
Reference in New Issue
Block a user