From 8d9fd841e48b8fceca9efd6a13bd1e797219b228 Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Sun, 20 Sep 2020 21:15:01 +0200 Subject: 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 --- dev-python/python-dotenv/python-dotenv-0.14.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dev-python/python-dotenv') diff --git a/dev-python/python-dotenv/python-dotenv-0.14.0.ebuild b/dev-python/python-dotenv/python-dotenv-0.14.0.ebuild index f73be0464463..facf646f4b77 100644 --- a/dev-python/python-dotenv/python-dotenv-0.14.0.ebuild +++ b/dev-python/python-dotenv/python-dotenv-0.14.0.ebuild @@ -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}" +} -- cgit v1.2.3-65-gdbad