mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
dev-python/pytest-randomly: fix tests and deps
Closes: https://bugs.gentoo.org/823011 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1 +1 @@
|
|||||||
DIST pytest-randomly-3.12.0.tar.gz 30426 BLAKE2B 22e7ac58787a98b24a672f2fc2fdba8069213008f11c66eb05320be99662311b0273b0c32079d59792964075abe6fd2f224ce03eb0d3b2dcf0a79e180f1a067e SHA512 e2241c1304b9597f93cc57d6830808f85c59ea1b4815624dcd9d088f87eb4a34d6cb6394de9c31ebedcb8280fb6ff12b110fd5a559ab28c9e0381481fce52c4d
|
DIST pytest-randomly-3.12.0.gh.tar.gz 30426 BLAKE2B 22e7ac58787a98b24a672f2fc2fdba8069213008f11c66eb05320be99662311b0273b0c32079d59792964075abe6fd2f224ce03eb0d3b2dcf0a79e180f1a067e SHA512 e2241c1304b9597f93cc57d6830808f85c59ea1b4815624dcd9d088f87eb4a34d6cb6394de9c31ebedcb8280fb6ff12b110fd5a559ab28c9e0381481fce52c4d
|
||||||
|
|||||||
@@ -13,26 +13,42 @@ HOMEPAGE="
|
|||||||
https://pypi.python.org/pypi/pytest-randomly/
|
https://pypi.python.org/pypi/pytest-randomly/
|
||||||
https://github.com/pytest-dev/pytest-randomly
|
https://github.com/pytest-dev/pytest-randomly
|
||||||
"
|
"
|
||||||
SRC_URI="https://github.com/pytest-dev/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/pytest-dev/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||||
|
|
||||||
LICENSE="BSD"
|
LICENSE="BSD"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-python/factory_boy[${PYTHON_USEDEP}]
|
|
||||||
dev-python/Faker[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest[${PYTHON_USEDEP}]
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
||||||
|
|
||||||
$(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' python3_{8..10})
|
|
||||||
$(python_gen_cond_dep '>=dev-python/importlib_metadata-3.6.0[${PYTHON_USEDEP}]' python3_{8,9})
|
$(python_gen_cond_dep '>=dev-python/importlib_metadata-3.6.0[${PYTHON_USEDEP}]' python3_{8,9})
|
||||||
"
|
"
|
||||||
DEPEND="${RDEPEND}"
|
# tests pytest-xdist integration
|
||||||
|
BDEPEND="test? (
|
||||||
|
dev-python/factory_boy[${PYTHON_USEDEP}]
|
||||||
|
dev-python/Faker[${PYTHON_USEDEP}]
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
tests/test_pytest_randomly.py::test_entrypoint_injection
|
||||||
|
tests/test_pytest_randomly.py::test_it_runs_before_stepwise
|
||||||
|
tests/test_pytest_randomly.py::test_works_without_xdist
|
||||||
|
|
||||||
|
# Output mismatch
|
||||||
|
tests/test_pytest_randomly.py::test_class_test_methods_reordered
|
||||||
|
tests/test_pytest_randomly.py::test_classes_reordered
|
||||||
|
tests/test_pytest_randomly.py::test_doctests_in_txt_files_reordered
|
||||||
|
tests/test_pytest_randomly.py::test_doctests_reordered
|
||||||
|
tests/test_pytest_randomly.py::test_files_reordered
|
||||||
|
tests/test_pytest_randomly.py::test_files_reordered_when_seed_not_reset
|
||||||
|
tests/test_pytest_randomly.py::test_test_functions_reordered
|
||||||
|
tests/test_pytest_randomly.py::test_test_functions_reordered_when_randomness_in_module
|
||||||
|
)
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
python_test() {
|
python_test() {
|
||||||
distutils_install_for_testing --via-root
|
epytest -p no:randomly
|
||||||
pytest -vv || die "Testsuite failed under ${EPYTHON}"
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user