-
Notifications
You must be signed in to change notification settings - Fork 70
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
Allow to skip test cases that download data #83
Comments
I suppose that'll be the pubchem tests. Should be easy enough. |
whoa, do you ever sleep?? I've made the Debian such that it ignores test failures for now but sure would be nice to be able to run tests cleanly. |
New testing decorator of: import socket
def internet_connection():
try:
socket.create_connection(("www.google.com", 80))
return True
except OSError:
return False
using_web = pytest.mark.skipif(internet_connection() is False, reason="Could not connect to the internet") @loriab Can you grab this? Currently my dev env is in a fragile state trying to propagate the Array changes. |
sorry, I never tested that back then; I've now checked that the pytests pass fine on my notebook (once I install E.g.:
Is this expected, or have there been some regressions since a4ebcca got committed? |
Some build environments (like Ubuntu autobuilders) have internet firewalled off to ensure that the build process is self-contained. In cases like this, quite a few test cases seem to fail because they try to download stuff.
So it would be convenient if there was an option or switch to skip those tests.
The text was updated successfully, but these errors were encountered: