diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-05-01 16:27:03 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-01 16:56:19 +0200 |
commit | 4f965207bc21298b47fb03d3c684ec5b5b0f89d9 (patch) | |
tree | c88c89c9343074454913f80a2a6aa1cc6f31d390 /dev-python/requests-toolbelt | |
parent | dev-python/requests-toolbelt: Add missing setuptools dep (diff) | |
download | gentoo-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.ebuild | 13 |
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}" +} |