我正在尝试模拟我与 moto 的 S3 连接
@mock_s3
def setUp(self):
self.s3_client = S3Client()
self.s3_client.create_bucket(BUCKET_NAME)
但我收到以下错误:
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL:"http://localhost:4567"
or
ConnecConnection refused