From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 753421382C5 for ; Tue, 23 Jun 2020 21:13:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90A0AE0801; Tue, 23 Jun 2020 21:13:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 74D6EE0801 for ; Tue, 23 Jun 2020 21:13:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 19A1934E66B for ; Tue, 23 Jun 2020 21:13:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A39C2AA for ; Tue, 23 Jun 2020 21:13:43 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1592946801.372315986c5a9bfd14a6088964df7056d8d159e2.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flask-gravatar/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/flask-gravatar/flask-gravatar-0.5.0.ebuild X-VCS-Directories: dev-python/flask-gravatar/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 372315986c5a9bfd14a6088964df7056d8d159e2 X-VCS-Branch: master Date: Tue, 23 Jun 2020 21:13:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 66a5864e-5efd-4bc4-939e-0b193b4ac386 X-Archives-Hash: 3dca434cdad848f4b0def2a8cbad2eef commit: 372315986c5a9bfd14a6088964df7056d8d159e2 Author: Michał Górny gentoo org> AuthorDate: Tue Jun 23 21:13:21 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jun 23 21:13:21 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37231598 dev-python/flask-gravatar: Enable tests Signed-off-by: Michał Górny gentoo.org> dev-python/flask-gravatar/flask-gravatar-0.5.0.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev-python/flask-gravatar/flask-gravatar-0.5.0.ebuild b/dev-python/flask-gravatar/flask-gravatar-0.5.0.ebuild index 01350e36cdc..0a62779f0ae 100644 --- a/dev-python/flask-gravatar/flask-gravatar-0.5.0.ebuild +++ b/dev-python/flask-gravatar/flask-gravatar-0.5.0.ebuild @@ -20,7 +20,17 @@ KEYWORDS="amd64 x86" RDEPEND="dev-python/flask[${PYTHON_USEDEP}]" +distutils_enable_tests pytest + src_prepare() { sed -i -e '/pytest-runner/d' setup.py || die + sed -e 's:--pep8::' \ + -e 's:--cov=flask_gravatar --cov-report=term-missing::' \ + -i pytest.ini || die distutils-r1_src_prepare } + +python_test() { + cd tests || die + pytest -vv || die "Tests failed with ${EPYTHON}" +}