commit:     73011b6c69b6cc5b57f665f40ab59796d6718289
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  9 20:46:40 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Nov  9 20:53:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73011b6c

dev-python/colour: enable tests

While hidden, the tests are doctests inside the python module. So if
we pass `--doctest-modules` to pytest, it will trigger them.

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/colour/colour-0.1.5.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-python/colour/colour-0.1.5.ebuild 
b/dev-python/colour/colour-0.1.5.ebuild
index d2b88e2f4779..f75cd5a01399 100644
--- a/dev-python/colour/colour-0.1.5.ebuild
+++ b/dev-python/colour/colour-0.1.5.ebuild
@@ -17,8 +17,14 @@ SLOT="0"
 
 PATCHES=( "${FILESDIR}"/${PN}-setup.patch )
 
+distutils_enable_tests pytest
+
 src_prepare() {
        rm setup.cfg || die
 
        distutils-r1_src_prepare
 }
+
+python_test() {
+       epytest --doctest-modules
+}

Reply via email to