-
Notifications
You must be signed in to change notification settings - Fork 898
Don't delete the whole destination folder while saving entityset #717
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
Codecov Report
@@ Coverage Diff @@
## master #717 +/- ##
==========================================
- Coverage 97.66% 97.64% -0.03%
==========================================
Files 118 118
Lines 10289 10301 +12
==========================================
+ Hits 10049 10058 +9
- Misses 240 243 +3
Continue to review full report at Codecov.
|
Thanks again, @chidauri. Could you add a test case confirming that this no longer deletes unrelated files in the destination folder? |
@@ -268,6 +268,13 @@ def test_serialize_url_csv(es): | |||
es.to_csv(URL, encoding='utf-8', engine='python') | |||
|
|||
|
|||
def test_serialize_data_description(es, tmpdir): |
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.
this test name could be updated to provide more context about that it is testing extra files are not removed
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.
Is it okay now?
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.
Looks like there's an issue with py35 / py27 tests.
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.
Fixed :)
@chidauri thanks for adding the test case! I think it would also be good to test that old serialization files (e.g. data_description.json) get overwritten. |
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.
Looks good!
Pull Request Description
Fixes #706 as the title suggests. The new functionality is to replace the conflicting files only and not the whole path.
After creating the pull request: in order to pass the changelog_updated check you will need to update the "Future Release" section of
docs/source/changelog.rst
to include this pull request.