-
-
Notifications
You must be signed in to change notification settings - Fork 329
Add other open modes in group creation test #2840
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
Conversation
Signed-off-by: asim <[email protected]>
Signed-off-by: asim <[email protected]>
@@ -1086,10 +1086,16 @@ async def test_open_falls_back_to_open_group_async() -> None: | |||
assert group.attrs == {"key": "value"} | |||
|
|||
|
|||
def test_open_mode_write_creates_group(tmp_path: pathlib.Path) -> None: | |||
@pytest.mark.parametrize("mode", ["r", "r+", "w", "a"]) | |||
def test_open_modes_creates_group(tmp_path: pathlib.Path, mode: str) -> None: |
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.
we should test this for every store class, but I think that can be a future PR
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.
Agreed! looking forward to work on it and raise a PR
Add else block for write operations only Co-authored-by: Davis Bennett <[email protected]>
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!
[Description of PR]
fixes: #2630
TODO:
docs/user-guide/*.rst
changes/