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
[MAINT] Rewrite write_tmp_imgs
function and use it with pytest's tmp_path
#4094
Conversation
👋 @ymzayek Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
For new features:
For bug fixes:
We will review it as quick as possible, feel free to ping us with questions if needed. |
Codecov Report
@@ Coverage Diff @@
## main #4094 +/- ##
==========================================
+ Coverage 91.59% 91.63% +0.03%
==========================================
Files 143 143
Lines 16128 16115 -13
Branches 3357 3353 -4
==========================================
- Hits 14773 14767 -6
+ Misses 806 800 -6
+ Partials 549 548 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
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.
Except for the name change it looks good to me.
Thanks a bunch for taking care of this one.
Realizing that refactoring this context manager had been on my mind for a while, so defo happy to see it go.
1bb544e
to
2e7b3d7
Compare
I would like to rebase #3935 on this so hoping to merge soon. Another review would be great! |
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.
I'm mostly happy with the PR, but ---again--- with the naming change from write_tmp_imgs
to ẁrite_fake_imgs, as there is nothing in this function that implies that images are fake.
I guess that we could just call it |
Yes makes sense. What about |
Or yea just this one |
either are ok with me |
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, thx !
Relates to #3935 (comment)
Changes proposed in this pull request:
tmp_path
fixture letting pytest take care of setting up a tmp directory and cleaning up the files.