[python] tox에서의 환경변수 설정은 어떻게 할 수 있나요?

아래는 TOX 환경에서 환경변수를 설정하는 방법의 간단한 코드 예시입니다.

[tox]
envlist = py36, py37

[testenv]
setenv =
    MY_ENV_VAR=value
commands =
    python -m unittest

이렇게 하면 각 테스트 환경이 실행될 때 환경변수가 설정됩니다.

더 자세한 정보는 Tox 공식 문서를 참조하세요. https://tox.readthedocs.io/en/latest/config.html#conf-basic-env