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

fix: fixed mock file system exception when using root path as a parameter #1132

Merged

Conversation

vladimir-shirmanov
Copy link
Contributor

@vladimir-shirmanov vladimir-shirmanov commented Jul 12, 2024

fix: MockFileSystem does not support Root directories

Description

Added a check inside AddFile to be able to add new Drives within a constructor

Fixed #702

Copy link
Member

@vbreuss vbreuss left a comment

Choose a reason for hiding this comment

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

Thanks for the pull request, I only have some minor suggestions.

Please also adapt the title to conform to the conventional commits guideline.

@vladimir-shirmanov
Copy link
Contributor Author

Thanks for the pull request, I only have some minor suggestions.

Please also adapt the title to conform to the conventional commits guideline.

oh sure, I'll add those in future commits.
Haven't seen that instruction in CONTRIBUTION.md, sorry for that.

CONTRIBUTING.md Outdated Show resolved Hide resolved
@vladimir-shirmanov vladimir-shirmanov changed the title fixed mock file system exception when using root path as a parameter fix: changed mock file system exception when using root path as a parameter Jul 13, 2024
@vladimir-shirmanov vladimir-shirmanov changed the title fix: changed mock file system exception when using root path as a parameter fix: fixed mock file system exception when using root path as a parameter Jul 13, 2024
Copy link
Member

@vbreuss vbreuss left a comment

Choose a reason for hiding this comment

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

Looks good, thank you for your effort, @vladimir-shirmanov 👍

Copy link
Member

@vbreuss vbreuss left a comment

Choose a reason for hiding this comment

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

Sorry, I just saw, that the tests failed for Ubuntu and MacOS. Probably the path separator must be OS dependent, @vladimir-shirmanov

@vladimir-shirmanov
Copy link
Contributor Author

Sorry, I just saw, that the tests failed for Ubuntu and MacOS. Probably the path separator must be OS dependent, @vladimir-shirmanov

I see that some tests are marked as Windows only, how do you think is it a good candidate for that as well?
Cause drives are Windows-only construct, so it is safe to mark those 2 specific tests as Windows only.

@vbreuss vbreuss merged commit f2bcaa9 into TestableIO:main Jul 13, 2024
9 checks passed
Copy link

This is addressed in release v21.0.26.

@github-actions github-actions bot added the state: released Issues that are released label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: released Issues that are released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MockFileSystem does not support Root directories
2 participants