1 |
commit: c33d0bac0ab0c919486a405f8909f54725f033dd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 1 13:55:02 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 1 14:56:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c33d0bac |
7 |
|
8 |
dev-python/vdirsyncer: Write partial test support |
9 |
|
10 |
dev-python/vdirsyncer/vdirsyncer-0.14.0.ebuild | 22 +++++++++++++++++++--- |
11 |
1 file changed, 19 insertions(+), 3 deletions(-) |
12 |
|
13 |
diff --git a/dev-python/vdirsyncer/vdirsyncer-0.14.0.ebuild b/dev-python/vdirsyncer/vdirsyncer-0.14.0.ebuild |
14 |
index 6d6752794a4..7f76580c3c6 100644 |
15 |
--- a/dev-python/vdirsyncer/vdirsyncer-0.14.0.ebuild |
16 |
+++ b/dev-python/vdirsyncer/vdirsyncer-0.14.0.ebuild |
17 |
@@ -1,4 +1,4 @@ |
18 |
-# Copyright 1999-2016 Gentoo Foundation |
19 |
+# Copyright 1999-2017 Gentoo Foundation |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
EAPI="6" |
23 |
@@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
24 |
LICENSE="MIT" |
25 |
KEYWORDS="~amd64 ~x86" |
26 |
SLOT="0" |
27 |
-IUSE="" |
28 |
+IUSE="test" |
29 |
|
30 |
RDEPEND="dev-python/click[${PYTHON_USEDEP}] |
31 |
>=dev-python/click-log-0.1.3[${PYTHON_USEDEP}] |
32 |
@@ -25,6 +25,22 @@ RDEPEND="dev-python/click[${PYTHON_USEDEP}] |
33 |
>=dev-python/atomicwrites-0.1.7[${PYTHON_USEDEP}]" |
34 |
DEPEND="${RDEPEND} |
35 |
dev-python/setuptools[${PYTHON_USEDEP}] |
36 |
- dev-python/setuptools_scm[${PYTHON_USEDEP}]" |
37 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
38 |
+ test? ( |
39 |
+ >=dev-python/hypothesis-3.1[${PYTHON_USEDEP}] |
40 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
41 |
+ dev-python/pytest-localserver[${PYTHON_USEDEP}] |
42 |
+ dev-python/pytest-subtesthack[${PYTHON_USEDEP}] |
43 |
+ )" |
44 |
|
45 |
DOCS=( AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst config.example ) |
46 |
+ |
47 |
+python_test() { |
48 |
+ # skip tests needing servers running |
49 |
+ local -x DAV_SERVER=skip |
50 |
+ local -x REMOTESTORAGE_SERVER=skip |
51 |
+ # pytest dies hard if the envvars do not have any value... |
52 |
+ local -x CI=false |
53 |
+ local -x DETERMINISTIC_TESTS=false |
54 |
+ py.test -v || die "Tests fail with ${EPYTHON}" |
55 |
+} |