commit:     4f965207bc21298b47fb03d3c684ec5b5b0f89d9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May  1 14:27:03 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May  1 14:56:19 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f965207

dev-python/requests-toolbelt: Enable tests

 dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild | 13 +++++++++++--
 1 file 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 39771f8d9f9..01ac4aeab11 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}"
+}

Reply via email to