@@ -208,6 +208,28 @@ The first time this is run, all of the Neo test files will be downloaded to your
208208so the run time can be an hour or more.
209209For subsequent runs, the files are already there, so the tests will run much faster.
210210
211+ Because Neo downloads datasets this can lead to issues in the course of offline development or
212+ for packaging Neo (e.g. for a Linux distribution). In order to not download datasets and to skip
213+ tests which require downloaded datasets the environment variable :code: `NEO_TESTS_NO_NETWORK ` can
214+ be set to any truthy value (e.g. :code: `'True'` `).
215+
216+ For macOS/Linux this can be done by doing:
217+
218+ .. code-block :: bash
219+
220+ NEO_TESTS_NO_NETWORK=' True' pytest .
221+
222+ For Windows this can be done by doing:
223+
224+ .. code-block :: bat
225+
226+ set NEO_TESTS_NO_NETWORK = true
227+
228+ pytest .
229+
230+ This can also be done with a conda environment variable if developing in a conda env. To configure these
231+ see the docs at `conda env vars documentation `_.
232+
211233It is often helpful to run only parts of the test suite. To test only the :mod: `neo.core ` module,
212234which is much quicker than testing :mod: `neo.io `, run::
213235
@@ -465,4 +487,5 @@ Making a release
465487.. _PyPI : https://pypi.org/project/neo
466488.. _`continuous integration server` : https://github.com/NeuralEnsemble/python-neo/actions
467489.. _`Read the Docs` : https://neo.readthedocs.io/en/latest/
468- .. _`docs configuration page` : https://readthedocs.org/projects/neo/
490+ .. _`docs configuration page` : https://readthedocs.org/projects/neo/
491+ .. _`conda env vars documentation` : https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment
0 commit comments