-
Notifications
You must be signed in to change notification settings - Fork 85
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: Raise error when converting xml workspaces without data #2109
Conversation
edit: I forgot that |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2109 +/- ##
=======================================
Coverage 98.30% 98.30%
=======================================
Files 69 69
Lines 4531 4533 +2
Branches 800 801 +1
=======================================
+ Hits 4454 4456 +2
Misses 45 45
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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 @alexander-held. We (someone, doesn't have to be you) should add a test that covers this use case so that we don't lose coverage, but overall this looks good. 👍
Do you just want a unit test or something more integration-like? I didn't find any related tests for this part actually, so I was not sure where to best add something. |
Just a unit test that covers the |
e2f6749
to
0db1ced
Compare
0db1ced
to
0ed921c
Compare
While looking where to put a test I came across edit: The difference is that the old PR is for the case where the data field is missing completely, while the case I am used to has a data field but the paths are empty strings. |
ca5cdcd
to
8734831
Compare
3959306
to
ae32fb2
Compare
@alexander-held sorry this hasn't been merged yet. It is late my time in Canada right now, but I have this on my list of things to do tomorrow during conference breaks. |
ae32fb2
to
beb7917
Compare
0a2350b
to
5dfbf8a
Compare
5dfbf8a
to
3f8ea1e
Compare
3f8ea1e
to
396285a
Compare
396285a
to
1eeadb3
Compare
d87e576
to
bc848f4
Compare
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 @alexander-held and sorry about the months of delay.
Description
Raise an error when attempting to convert an xml workspace that contains no data, i.e. looks like this:
Previously this would raise an
IsADirectoryError
viauproot
, which is confusing to users. See #566 for context.I have not added any new test for this, as I haven't seen anything specifically targeting that API at the moment. I confirmed it raises as expected, an example is linked in #566 (comment).
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: