Skip to content

Instantly share code, notes, and snippets.

@gsweene2
Last active August 28, 2022 00:15
Show Gist options
  • Save gsweene2/6c0630ab29323692e00335451b4a8aa6 to your computer and use it in GitHub Desktop.
Save gsweene2/6c0630ab29323692e00335451b4a8aa6 to your computer and use it in GitHub Desktop.
import boto3
from python_poetry_template.s3_util_class import S3Util
def test_list_objects__when_24_objects_in_pubgoer_bucket__should_return_24_objects():
# Arrange
s3_client = boto3.client("s3")
# Act
s3_util = S3Util(s3_client)
result = s3_util.list_objects("www.pubgoer.me")
# print(f'calls: {mock_s3_client.mock_calls}')
# Assert
assert 24 == len(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment