How can I set an environment variable with the location of the pytest.ini
, tox.ini
or setup.cfg
for running pytest
by default?
I created a docker container with a volume pointing to my project directory, so every change I make is also visible inside the docker container. The problem is that I have a pytest.ini
file on my project root which won't apply to the docker container.
So I want to set an environment variable inside the docker container to specify where to look for the pytest configuration. Does anyone have any idea how could I do that?
There is no way to do that. You can use a different pytest configuration using pytest -c
but tox.ini
and setup.cfg
must reside in the top-level directory of your package, next to setup.py
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.