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

Update AWS testing library "moto" #1941

Open
melange396 opened this issue Jan 30, 2024 · 0 comments
Open

Update AWS testing library "moto" #1941

melange396 opened this issue Jan 30, 2024 · 0 comments

Comments

@melange396
Copy link
Contributor

A version-related incompatibility in the moto library surfaced during the release of covidcast-indicators version 0.3.52 (in #1939): moto version 5 replaced all of its mock decorators with just one: https://github.com/getmoto/moto/blame/3f773179905f974948919e0497e4d19eef09b86a/CHANGELOG.md#L9-L10

We fixed it by pinning to an older version of moto; see #1940 (comment)

It looks like we can use the newer version by changing our uses of moto.mock_s3() to moto.mock_aws(), and the pinning to something like moto~=5.0.

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

No branches or pull requests

1 participant