-
Notifications
You must be signed in to change notification settings - Fork 49
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
Purge unittest? #245
Purge unittest? #245
Conversation
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.
Respect for wading through all of this !
Some tiny suggestions, but basically all good !
Thanks @pp-mo, I've addressed your comments. I'm at a loss what to do about Codacy's objection though. |
I think it is because 'self' is unused in this method. |
I tried removing that method entirely, and I couldn't see any change in the test output. 🤷♀️ |
Thanks @rcomer. |
🚀 Pull Request
Description
I learned of these tools to help convert unittest tests to pytest-style tests
So obviously I wanted to see what happens if you point them at cf_units! The
udunits
tests needed a little manual intervention, because the patterngives you a different
thing
toOtherwise, this was remarkably painless.
The final commit just gets rid of the pattern
import cf_units as unit
from one test module. I assume that was a hangover from whencf_units
was taken out of theiris.unit
module.