commit:     60761119fcae5935b396c1d3638837c2ec0b9c3d
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  9 08:35:26 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Nov  9 11:49:41 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60761119

dev-python/pytest-cache: Add tests

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 dev-python/pytest-cache/pytest-cache-1.0.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dev-python/pytest-cache/pytest-cache-1.0.ebuild 
b/dev-python/pytest-cache/pytest-cache-1.0.ebuild
index d63baad..2ac38ab 100644
--- a/dev-python/pytest-cache/pytest-cache-1.0.ebuild
+++ b/dev-python/pytest-cache/pytest-cache-1.0.ebuild
@@ -15,9 +15,17 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 SLOT="0"
 LICENSE="MIT"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
+IUSE="test"
 
 RDEPEND=""
 DEPEND="${RDEPEND}
        dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( dev-python/pytest[${PYTHON_USEDEP}] )
        "
+
+# https://bitbucket.org/hpk42/pytest-cache/issues/12
+RESTRICT=test
+
+python_test() {
+       PYTEST_PLUGINS="pytest_cache" py.test -v -v || die
+}

Reply via email to