Docs: Improve Getting Started example (#6325)

This commit is contained in:
Bert Blommers 2023-05-15 22:46:02 +00:00 committed by GitHub
parent 73257241ce
commit 7252a3aa68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,9 +130,10 @@ If you use `unittest`_ to run tests, and you want to use `moto` inside `setUp`,
object.put(Body=content)
class MyTest(unittest.TestCase):
mock_s3 = mock_s3()
bucket_name = "test-bucket"
def setUp(self):
self.mock_s3 = mock_s3()
self.mock_s3.start()
# you can use boto3.client("s3") if you prefer