summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-04-22 16:22:50 +0200
committerMichał Górny <mgorny@gentoo.org>2017-04-22 18:40:54 +0200
commit9e58f2550d266b5ab6312053ba6dc02dd1d20617 (patch)
tree29125187658adcb0933c12284b3cba9e95024061 /dev-python/click-log
parentdev-python/click-log: Add missing PYTHON_USEDEP (diff)
downloadgentoo-9e58f2550d266b5ab6312053ba6dc02dd1d20617.tar.gz
gentoo-9e58f2550d266b5ab6312053ba6dc02dd1d20617.tar.bz2
gentoo-9e58f2550d266b5ab6312053ba6dc02dd1d20617.zip
dev-python/click-log: Enable the test suite
Diffstat (limited to 'dev-python/click-log')
-rw-r--r--dev-python/click-log/click-log-0.1.8.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/dev-python/click-log/click-log-0.1.8.ebuild b/dev-python/click-log/click-log-0.1.8.ebuild
index d6def6f7b140..d49868d78ade 100644
--- a/dev-python/click-log/click-log-0.1.8.ebuild
+++ b/dev-python/click-log/click-log-0.1.8.ebuild
@@ -13,9 +13,14 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
-DEPEND="dev-python/click[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}"
+RDEPEND="dev-python/click[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
DOCS=( README.rst )
+
+python_test() {
+ py.test -v || die "Tests fail with ${EPYTHON}"
+}