From ad567322e26c6847d93300f9fea3e180898ee101 Mon Sep 17 00:00:00 2001 From: Till Schäfer Date: Fri, 18 Jun 2021 12:35:34 +0200 Subject: app-text/nfoview: enable pytest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit use distutils_enable_tests pytest Closes: https://bugs.gentoo.org/796287 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Till Schäfer Signed-off-by: Joonas Niilola --- app-text/nfoview/nfoview-1.28.ebuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'app-text/nfoview') diff --git a/app-text/nfoview/nfoview-1.28.ebuild b/app-text/nfoview/nfoview-1.28.ebuild index c619ae9688c5..2b8c11296e62 100644 --- a/app-text/nfoview/nfoview-1.28.ebuild +++ b/app-text/nfoview/nfoview-1.28.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -6,7 +6,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=no PYTHON_COMPAT=( python3_{7,8,9} ) -inherit distutils-r1 xdg +inherit distutils-r1 virtualx xdg if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://github.com/otsaloma/nfoview.git" @@ -27,3 +27,13 @@ BDEPEND="${PYTHON_DEPS} DEPEND="dev-python/pygobject:3[${PYTHON_USEDEP}]" RDEPEND="${DEPEND} media-fonts/cascadia-code" + +distutils_enable_tests pytest + +python_test() { + local deselect=( + --deselect 'nfoview/test/test_util.py::TestModule::test_show_uri__unix' + --deselect 'nfoview/test/test_util.py::TestModule::test_show_uri__windows' + ) + virtx epytest "${deselect[@]}" +} -- cgit v1.2.3-65-gdbad