From 02b9793189a75531b98bca3e1c0d67bcba61ee3b Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Thu, 30 Sep 2021 16:02:49 -0400 Subject: [PATCH] Fix boto3 example --- examples/miniapps/boto3-session/boto3_session_example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/miniapps/boto3-session/boto3_session_example.py b/examples/miniapps/boto3-session/boto3_session_example.py index 85a3e391..33ed85f6 100644 --- a/examples/miniapps/boto3-session/boto3_session_example.py +++ b/examples/miniapps/boto3-session/boto3_session_example.py @@ -62,10 +62,10 @@ def main(): assert service1.s3_client is s3_client assert service1.sqs_client is sqs_client - service2 = container.service1() + service2 = container.service2() print(service2, service2.s3_client, service2.sqs_client) - assert service2.s3_client is s3_client - assert service2.sqs_client is sqs_client + assert service2.s3_client.__class__.__name__ == "S3" + assert service2.sqs_client.__class__.__name__ == "SQS" if __name__ == "__main__":