summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-10-19 10:32:16 +0200
committerMichał Górny <mgorny@gentoo.org>2018-10-19 10:46:43 +0200
commit7aa1a121980c28e45c6e28fbe5f734b4c0c5241a (patch)
treef4bbf571e08035c9b3bf653a3f1acb1852fd7721
parentdev-python/jdcal: Bump to 1.4 (diff)
downloadgentoo-7aa1a121980c28e45c6e28fbe5f734b4c0c5241a.tar.gz
gentoo-7aa1a121980c28e45c6e28fbe5f734b4c0c5241a.tar.bz2
gentoo-7aa1a121980c28e45c6e28fbe5f734b4c0c5241a.zip
dev-python/jdcal: Enable tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/jdcal/jdcal-1.4.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-python/jdcal/jdcal-1.4.ebuild b/dev-python/jdcal/jdcal-1.4.ebuild
index 7d5ccbb430d7..6e4aa866dc33 100644
--- a/dev-python/jdcal/jdcal-1.4.ebuild
+++ b/dev-python/jdcal/jdcal-1.4.ebuild
@@ -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
+}