dev-python/jdcal: Enable tests
authorMichał Górny <mgorny@gentoo.org>
Fri, 19 Oct 2018 08:32:16 +0000 (10:32 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 19 Oct 2018 08:46:43 +0000 (10:46 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/jdcal/jdcal-1.4.ebuild

index 7d5ccbb430d701613ba9a242c69378bb32b75739..6e4aa866dc332ee78cc915713cedc0bf2a6932ec 100644 (file)
@@ -14,5 +14,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="BSD"
 KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
 SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
 
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+python_test() {
+       pytest -vv || die
+}