dev-python/python-dotenv: make sure tests find "dotenv" in PATH

Closes: https://bugs.gentoo.org/743784
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
This commit is contained in:
Louis Sautier
2020-09-20 21:15:01 +02:00
parent 54173d55f4
commit 8d9fd841e4

View File

@@ -27,3 +27,10 @@ DEPEND="test? (
DOCS=( CHANGELOG.md README.md )
distutils_enable_tests pytest
python_test() {
# Tests call the "dotenv" command which needs to be in PATH
# https://bugs.gentoo.org/743784
distutils_install_for_testing
pytest -vv || die "Tests fail with ${EPYTHON}"
}