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

Get most of the tests to pass #3

Merged
merged 11 commits into from
Dec 16, 2024

Conversation

maxrjones
Copy link

@maxrjones maxrjones commented Dec 13, 2024

Fixes previously failing tests

@maxrjones maxrjones changed the title Check if store is writable for setting or deleting objects WIP: Get tests to pass Dec 14, 2024
@maxrjones maxrjones changed the title WIP: Get tests to pass Get most of the tests to pass Dec 15, 2024
@@ -158,12 +168,13 @@ async def _transform_list_dir(
# We assume that the underlying object-store implementation correctly handles the
# prefix, so we don't double-check that the returned results actually start with the
# given prefix.
prefix_len = len(prefix)
prefix_len = len(prefix) + 1 # If one is not added to the length, all items will contain "/"
Copy link
Author

Choose a reason for hiding this comment

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

Actually, should we test if a user defines prefix as (e.g.,) "foo/" rather than "foo" before automatically adding 1?

Copy link
Owner

Choose a reason for hiding this comment

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

Ideally it shouldn't be necessary to check again in Python

@@ -158,12 +168,13 @@ async def _transform_list_dir(
# We assume that the underlying object-store implementation correctly handles the
# prefix, so we don't double-check that the returned results actually start with the
# given prefix.
prefix_len = len(prefix)
prefix_len = len(prefix) + 1 # If one is not added to the length, all items will contain "/"
Copy link
Owner

Choose a reason for hiding this comment

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

Ideally it shouldn't be necessary to check again in Python

@kylebarron kylebarron merged commit 3aa3578 into kylebarron:kyle/object-store Dec 16, 2024
4 checks passed
@kylebarron
Copy link
Owner

Thank you!

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