summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-05-01 16:27:03 +0200
committerMichał Górny <mgorny@gentoo.org>2017-05-01 16:56:19 +0200
commit4f965207bc21298b47fb03d3c684ec5b5b0f89d9 (patch)
treec88c89c9343074454913f80a2a6aa1cc6f31d390 /dev-python/requests-toolbelt
parentdev-python/requests-toolbelt: Add missing setuptools dep (diff)
downloadgentoo-4f965207bc21298b47fb03d3c684ec5b5b0f89d9.tar.gz
gentoo-4f965207bc21298b47fb03d3c684ec5b5b0f89d9.tar.bz2
gentoo-4f965207bc21298b47fb03d3c684ec5b5b0f89d9.zip
dev-python/requests-toolbelt: Enable tests
Diffstat (limited to 'dev-python/requests-toolbelt')
-rw-r--r--dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild
index 39771f8d9f97..01ac4aeab119 100644
--- a/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild
+++ b/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild
@@ -13,10 +13,19 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
RDEPEND="<dev-python/requests-3.0.0"
DEPEND="${RDEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]"
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/betamax[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
DOCS=( AUTHORS.rst HISTORY.rst README.rst )
+
+python_test() {
+ py.test -v || die "Tests fail with ${EPYTHON}"
+}