1 |
commit: 4f965207bc21298b47fb03d3c684ec5b5b0f89d9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 1 14:27:03 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 1 14:56:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f965207 |
7 |
|
8 |
dev-python/requests-toolbelt: Enable tests |
9 |
|
10 |
dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild | 13 +++++++++++-- |
11 |
1 file changed, 11 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild |
14 |
index 39771f8d9f9..01ac4aeab11 100644 |
15 |
--- a/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild |
16 |
+++ b/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild |
17 |
@@ -13,10 +13,19 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
18 |
LICENSE="Apache-2.0" |
19 |
SLOT="0" |
20 |
KEYWORDS="~amd64 ~x86" |
21 |
-IUSE="" |
22 |
+IUSE="test" |
23 |
|
24 |
RDEPEND="<dev-python/requests-3.0.0" |
25 |
DEPEND="${RDEPEND} |
26 |
- dev-python/setuptools[${PYTHON_USEDEP}]" |
27 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
28 |
+ test? ( |
29 |
+ dev-python/betamax[${PYTHON_USEDEP}] |
30 |
+ dev-python/mock[${PYTHON_USEDEP}] |
31 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
32 |
+ )" |
33 |
|
34 |
DOCS=( AUTHORS.rst HISTORY.rst README.rst ) |
35 |
+ |
36 |
+python_test() { |
37 |
+ py.test -v || die "Tests fail with ${EPYTHON}" |
38 |
+} |