From 7252a3aa68db7ae7b2a9091b67cec22bcc6bf040 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Mon, 15 May 2023 22:46:02 +0000 Subject: [PATCH] Docs: Improve Getting Started example (#6325) --- docs/docs/getting_started.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/getting_started.rst b/docs/docs/getting_started.rst index 449a2cac3..b11da7c83 100644 --- a/docs/docs/getting_started.rst +++ b/docs/docs/getting_started.rst @@ -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