-
Notifications
You must be signed in to change notification settings - Fork 35
Switch to using skip_if_missing #1640
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
|
No API break detected ✅ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1640 +/- ##
==========================================
- Coverage 95.33% 92.89% -2.45%
==========================================
Files 183 183
Lines 15762 15779 +17
==========================================
- Hits 15027 14658 -369
- Misses 735 1121 +386
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I agree with unification, but I would generally prefer we use a built-in pytest functionality over an openff utils dependency. is there a benefit to openff's implementation here? |
|
It started with me thinking that I like how the openff-utils version only skips on a np = pytest.importskip("numpy")
def test_cos(rad):
assert np.cos(0) == 1so we were not really using it correctly (and often our tests don't really have an import of the optinal package so it looks a bit weird to have I am happy to switch to using the built in pytest version, it has some nice things like a I am not really worried about the openff-utilities dep since other packages need it as well: |
|
Thanks for articulating this @mikemhenry - I think the benefits (especially decorator) of openff utils is worth it here (and probably why openff added it in the first place 😄) i'm fine with this solution! |
|
As a bonus, b/c we switch to this method, the output looks like this now: instead of |
This PR unifies how we skip tests.
Checklist
newsentryDevelopers certificate of origin