-
-
Notifications
You must be signed in to change notification settings - Fork 13
Use simple open in copy engine #267
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
6636349 to
eb8589c
Compare
Codecov Report
@@ Coverage Diff @@
## dev #267 +/- ##
==========================================
+ Coverage 99.19% 99.19% +<.01%
==========================================
Files 58 59 +1
Lines 2478 2496 +18
==========================================
+ Hits 2458 2476 +18
Misses 20 20
Continue to review full report at Codecov.
|
|
Utils.py does the file writing, in 'wb' mode. |
|
Python 3 failed but python 2 tests passed. |
|
def write_file_out(filename, content, strip=True, encode=True): |
Pretty strange, I will look into it. Seems something to do with encoding. |
|
Do you have the file which triggered this PR? Can we have a test case using it and get it pass? Please put it in a separate test file because it will serve us in the future as critical regression test suites. |
|
This is the file: https://github.com/coala/artwork/blob/master/artwork/logo/coala_color.svg as found from https://gitlab.com/ayan-b/mobans/-/jobs/199585396. |
|
I see |
|
Please Write up a new test case to copy it and verify copy works ok. And this test case will not be updated when moban evolves because it will be the future that we do like to break. |
|
@chfw, I have added the test in an existing file. Should I create a new file and add there? |
|
A new file is better because it is to be kept as it is during refactoring. Other test cases that fail in refactoring can be updated but this one cannot be. So if this test fails, it means we got a regression. |
|
@chfw is the current structure ok? |
chfw
left a comment
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
Before raising the PR, here is a check list:
5.1) can someone else understand your changes without your explanation?
6.1) do you have the feeling of achievement?