Update README.md (#7266)

This commit is contained in:
Yossi Rozantsev 2024-01-29 18:15:41 +00:00 committed by GitHub
parent 0b4cedc44b
commit 496c1cd559
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,11 +45,11 @@ Now see how you could test it with Moto:
```python
import boto3
from moto import mock_s3
from moto import mock_aws
from mymodule import MyModel
@mock_s3
@mock_aws
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