Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fixes, improvements to list_keys and parameterization of S3Annex APIs #63

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

matt-m-mclaughlin
Copy link
Contributor

@matt-m-mclaughlin matt-m-mclaughlin commented Sep 5, 2024

Improvements

  • s3 list_keys returns generator, respecting pagination.
  • content_disposition can be specified in send_file. Still defaults to attachment
  • get_upload_info can override max_content_length.
  • add support for advanced botocore configurations to S3Annex

Fixes

  • Fix moto usage to use mock_aws
  • The new mock_aws now sets AWSAccessKeyId to FOOBARKEY, fix this in test
  • remove deprecated yield_fixture in test

…n can be specified in send_file. get_upload_info can override max_content_length. Fix moto to use mock_aws
@matt-m-mclaughlin matt-m-mclaughlin marked this pull request as ready for review September 5, 2024 18:44
)
if "Contents" not in response:
return ()
return tuple(item["Key"] for item in response["Contents"])
Copy link
Contributor

@c0state c0state Sep 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This technically might warrant a major version bump

flask_annex/s3.py Outdated Show resolved Hide resolved
Copy link
Contributor

@c0state c0state left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@matt-m-mclaughlin matt-m-mclaughlin merged commit a3c51d9 into master Sep 6, 2024
6 checks passed
@matt-m-mclaughlin matt-m-mclaughlin deleted the imps branch September 6, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants