Skip to content

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

Merged
vbreuss merged 9 commits intoTestableIO:mainfrom
vladimir-shirmanov:bugfix/support-different-roots
Jul 13, 2024
Merged

fix: fixed mock file system exception when using root path as a parameter#1132
vbreuss merged 9 commits intoTestableIO:mainfrom
vladimir-shirmanov:bugfix/support-different-roots

Conversation

@vladimir-shirmanov
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

This is addressed in release v21.0.26.

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