diff options
author | Zac Medico <zmedico@gentoo.org> | 2021-06-21 20:54:07 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-06-21 20:59:31 -0700 |
commit | c676da5563e4fa57ade031d460f6f1487381a0ed (patch) | |
tree | 9103a24967ed8f5a4619364e88700379180c25b8 /dev-python/pytimeparse | |
parent | dev-python/dbfread: Enable unit tests (bug 797310) (diff) | |
download | gentoo-c676da5563e4fa57ade031d460f6f1487381a0ed.tar.gz gentoo-c676da5563e4fa57ade031d460f6f1487381a0ed.tar.bz2 gentoo-c676da5563e4fa57ade031d460f6f1487381a0ed.zip |
dev-python/pytimeparse: Enable unit tests (bug 797304)
test_doctest (pytimeparse.tests.testtimeparse.TestTimeparse)
Run timeparse doctests. ... ok
test_hrs (pytimeparse.tests.testtimeparse.TestTimeparse)
Test parsing hours. ... ok
test_mins (pytimeparse.tests.testtimeparse.TestTimeparse)
Test parsing minutes. ... ok
test_time (pytimeparse.tests.testtimeparse.TestTimeparse)
Test parsing time expression. ... ok
test_timeparse_1 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 1. ... ok
test_timeparse_10 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 10. ... ok
test_timeparse_11 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 11. ... ok
test_timeparse_12 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 12. ... ok
test_timeparse_13 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 13. ... ok
test_timeparse_14 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 14. ... ok
test_timeparse_15 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 15. ... ok
test_timeparse_16 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 16. ... ok
test_timeparse_16b (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 16b. ... ok
test_timeparse_16c (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 16c. ... ok
test_timeparse_16d (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 16d. ... ok
test_timeparse_16e (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 16e. ... ok
test_timeparse_16f (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 16f. ... ok
test_timeparse_17 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 17. ... ok
test_timeparse_18 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 18. ... ok
test_timeparse_19 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 19. ... ok
test_timeparse_2 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 2. ... ok
test_timeparse_20 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 20. ... ok
test_timeparse_21 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 21. ... ok
test_timeparse_22 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 22. ... ok
test_timeparse_23 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 23. ... ok
test_timeparse_24 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 24. ... ok
test_timeparse_25 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 25. ... ok
test_timeparse_26 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 26. ... ok
test_timeparse_27 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 27. ... ok
test_timeparse_28 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 28. ... ok
test_timeparse_29 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 29. ... ok
test_timeparse_3 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 3. ... ok
test_timeparse_30 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 30. ... ok
test_timeparse_31 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 31. ... ok
test_timeparse_32 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 32. ... ok
test_timeparse_33 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 33. ... ok
test_timeparse_4 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 4. ... ok
test_timeparse_5 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 5. ... ok
test_timeparse_6 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 6. ... ok
test_timeparse_7 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 7. ... ok
test_timeparse_8 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 8. ... ok
test_timeparse_9 (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test case 9. ... ok
test_timeparse_bare_seconds (pytimeparse.tests.testtimeparse.TestTimeparse)
timeparse test bare seconds, without minutes. ... ok
test_timeparse_granularity_1 (pytimeparse.tests.testtimeparse.TestTimeparse)
Check that minute-level granularity applies correctly. ... ok
test_timeparse_granularity_2 (pytimeparse.tests.testtimeparse.TestTimeparse)
Check that minute-level granularity does not apply inappropriately. ... ok
test_timeparse_granularity_3 (pytimeparse.tests.testtimeparse.TestTimeparse)
Check that minute-level granularity does not apply inappropriately. ... ok
test_timeparse_granularity_4 (pytimeparse.tests.testtimeparse.TestTimeparse)
Check that minute-level granularity does not apply inappropriately. ... ok
test_timeparse_multipliers (pytimeparse.tests.testtimeparse.TestTimeparse)
Test parsing time unit multipliers. ... ok
test_timeparse_signs (pytimeparse.tests.testtimeparse.TestTimeparse)
Test parsing time signs. ... ok
----------------------------------------------------------------------
Ran 49 tests in 0.017s
Reported-py: Michał Górny <mgorny@gentoo.org>
Closes: https://bugs.gentoo.org/797304
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-python/pytimeparse')
-rw-r--r-- | dev-python/pytimeparse/pytimeparse-1.1.8.ebuild | 10 |
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}" +} |