From 263a70a78c777dadd632bb6749c4c5f4df80d46c Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 26 Apr 2017 17:39:57 +0200 Subject: dev-python/flake8-polyfill: Enable tests --- dev-python/flake8-polyfill/flake8-polyfill-1.0.1.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'dev-python/flake8-polyfill') diff --git a/dev-python/flake8-polyfill/flake8-polyfill-1.0.1.ebuild b/dev-python/flake8-polyfill/flake8-polyfill-1.0.1.ebuild index eb46a256ccff..84bd5353b4fb 100644 --- a/dev-python/flake8-polyfill/flake8-polyfill-1.0.1.ebuild +++ b/dev-python/flake8-polyfill/flake8-polyfill-1.0.1.ebuild @@ -14,7 +14,15 @@ EGIT_REPO_URI="https://gitlab.com/pycqa/flake8-polyfill.git" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + py.test -v || die "Tests fail with ${EPYTHON}" +} -- cgit v1.2.3-65-gdbad