1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2025-02-04 10:36:18 +01:00

Environment variables are not passed by default

Merges https://github.com/fedora-python/tox-current-env/pull/8

Co-Authored-By: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
Miro Hrončok 2019-07-29 14:12:18 +02:00 committed by GitHub
parent 9dd4b78908
commit 72c137afd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,6 +166,17 @@ but in some cases (such as running ``tox --current-env``, uninstalling the
plugin, and running ``tox``), you will get undefined results
(such as installing packages from PyPI into your current environment).
Environment variables are not passed by default
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Although the plugin name suggests that current environment is used for tests,
it means the Python environment, not Shell.
If you want the tests to see environment variables of the calling process,
use the ``TOX_TESTENV_PASSENV`` environment variable.
Read `the documentation for passing environment variables to tox
<https://tox.readthedocs.io/en/latest/config.html#conf-passenv>`_.
Other limitations and known bugs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~