-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Conda tests session should skip rather than fail if conda not installed #520
Comments
I can reproduce this using Windows. I think skipping |
@DiddiLeija Yeah potentially, something like if <something that would render the session useless>:
session.skip(reason="Missing something needed for the session") Kind of like pytest's I think this could be a bit complex to implement though and might be better served with the simple |
Yup. I'm looking for something like that.
I will take a closer look for this idea later, probably next year. |
@DiddiLeija I've just found out |
Describe the bug
While quickly doing #519, I noticed that running bare
nox
on my machine results in somewhat unattractive looking failures:I think a better solution would be to first check if the user has
conda
and skip this session if not (much like the tests themselves have apytest.mark.skipif
condition.How to reproduce
Run
nox
on this project without having conda installed.Expected behavior
Should skip
conda_tests
if conda is not installed.This is a super quick fix and I'll do it now, filing the issue for traceability 🙂
The text was updated successfully, but these errors were encountered: