Last active
August 28, 2022 00:15
-
-
Save gsweene2/6c0630ab29323692e00335451b4a8aa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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