summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytimeparse')
-rw-r--r--dev-python/pytimeparse/pytimeparse-1.1.8.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-python/pytimeparse/pytimeparse-1.1.8.ebuild b/dev-python/pytimeparse/pytimeparse-1.1.8.ebuild
index b49692b4aa69..0de0dcc5dc84 100644
--- a/dev-python/pytimeparse/pytimeparse-1.1.8.ebuild
+++ b/dev-python/pytimeparse/pytimeparse-1.1.8.ebuild
@@ -13,3 +13,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
+
+python_test() {
+ local unittest_args=(
+ --verbose
+ --locals
+ pytimeparse.tests.testtimeparse
+ )
+
+ "${PYTHON}" -m unittest "${unittest_args[@]}" || die "Tests failed with ${EPYTHON}"
+}