Mark test that require access to the internet#3985
Mark test that require access to the internet#3985avalentino wants to merge 1 commit intoUnidata:mainfrom
Conversation
95f8131 to
864de4d
Compare
I some cases it is necessary to run teh test suite in an environment without access to teh internet (e.g. when one is building Debian packages). This PR add the "network" mark to all tests requiring access to the internet. In this way, it is easy to skip them using the following command: $ python3 -m pytest -m "not network" tests
864de4d to
3b31830
Compare
|
@avalentino I assume this is building from the sdist on PyPI and not from a git checkout? Looks like network access comes from downloading our testdata. I wonder if it's worth finding a way to distribute the testdata instead? |
|
Yes in debian we use source tarball coming from the git tag, not the pypi sdist. To me having the test marked in some way is still a good thing, even if you decide to distribute the test data. |
|
... of course the mark name could be different if you prefer e.g. "remotedata" or "pooch" |
Description Of Changes
I some cases it is necessary to run teh test suite in an environment without access to teh internet (e.g. when one is building Debian packages).
This PR add the "network" mark to all tests requiring access to the internet.
In this way, it is easy to skip them using the following command:
$ python3 -m pytest -m "not network" tests
Checklist