From 7aa1a121980c28e45c6e28fbe5f734b4c0c5241a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 19 Oct 2018 10:32:16 +0200 Subject: dev-python/jdcal: Enable tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/jdcal/jdcal-1.4.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'dev-python/jdcal') 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 +} -- cgit v1.2.3-65-gdbad