dev-python/invoke: allow tests

Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
Henri Gasc 2023-12-03 23:53:35 +01:00
parent afadd63eb5
commit d0cfa6a590
No known key found for this signature in database
GPG Key ID: 3C21DC7CC460006B

View File

@ -15,7 +15,19 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
src_prepare(){
rm -r ./invoke/vendor/yaml2
eapply_user
}
BDEPEND="
test? (
dev-python/decorator[${PYTHON_USEDEP}]
>=dev-python/icecream-2.1[${PYTHON_USEDEP}]
>=dev-python/pytest-cov-4[${PYTHON_USEDEP}]
>=dev-python/pytest-relaxed-2[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# Most of those fails with "OSError: reading from stdin while output is captured"
# seems like it is because I do the testing in a chroot
# Because there are 112 tests that fails, I'd rather skip the file than manually add 112 tests
tests/runners.py
)