-
Notifications
You must be signed in to change notification settings - Fork 229
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
Moto server implementation for pytest #223
Conversation
cc @HonahX since he's the original author of the Glue catalog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the fix @sebpretzer! It is great that we can finally get rid of the _patch_aiobotocore
and use PyarrowFileIO
in the unit tests!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @sebpretzer 🙌 and thanks for the review @HonahX
* adding moto server dependency * change test harness to moto server * fixing mypy issues * making glue data catalog a factory * reverting unnecessary moto server clients * reverting to simplest implementation of moto server with s3 only * clean up dynamodb variable overwrite * fixing failed test * dropping for default port
This is the PR relating to #222.
This should be a drop in replacement for
moto.mock_s3
, by pointing the s3 clients at a moto server endpoint url.By doing this, you can:
aiobotocore
pyiceberg.io.fsspec.FsspecFileIO
over the default ofpyiceberg.io.pyarrow.PyArrowFileIO
.Glue and DynamoDB still use the basic
mock_glue
andmock_dynamodb
. They could probably be moved over to the sever implementation as well, but it was taking more work than I wanted so I didn't include it.