diff options
author | schmonz <schmonz@pkgsrc.org> | 2020-04-20 14:37:46 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2020-04-20 14:37:46 +0000 |
commit | 9c4585fa1f2cbf4b7fbf08bda11c349aa004e292 (patch) | |
tree | 7e387055e79b4230ecb59057690d04e61035f2c4 /devel | |
parent | 6c035d73752714ff709639a302ef7eef86a284ca (diff) | |
download | pkgsrc-9c4585fa1f2cbf4b7fbf08bda11c349aa004e292.tar.gz |
Initial import of py-approvaltests, the Python port of an
assertion/verification library to aid testing.
You can use ApprovalTests to verify objects that require more than a
simple assert including long strings, large arrays, and complex hash
structures and objects. ApprovalTests really shines when you need a more
granular look at the test failure. Sometimes, trying to find a small
difference in a long string printed to STDOUT is just too hard!
ApprovalTests solves this problem by providing reporters which let you
view the test results in one of many popular diff utilities.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-approvaltests/DESCR | 10 | ||||
-rw-r--r-- | devel/py-approvaltests/Makefile | 22 | ||||
-rw-r--r-- | devel/py-approvaltests/PLIST | 85 | ||||
-rw-r--r-- | devel/py-approvaltests/distinfo | 6 |
4 files changed, 123 insertions, 0 deletions
diff --git a/devel/py-approvaltests/DESCR b/devel/py-approvaltests/DESCR new file mode 100644 index 00000000000..b16c70306c2 --- /dev/null +++ b/devel/py-approvaltests/DESCR @@ -0,0 +1,10 @@ +`approvaltests` is the Python port of ApprovalTests, an open source +assertion/verification library to aid testing. + +You can use ApprovalTests to verify objects that require more than a +simple assert including long strings, large arrays, and complex hash +structures and objects. ApprovalTests really shines when you need a more +granular look at the test failure. Sometimes, trying to find a small +difference in a long string printed to STDOUT is just too hard! +ApprovalTests solves this problem by providing reporters which let you +view the test results in one of many popular diff utilities. diff --git a/devel/py-approvaltests/Makefile b/devel/py-approvaltests/Makefile new file mode 100644 index 00000000000..f0bd0f6d35d --- /dev/null +++ b/devel/py-approvaltests/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2020/04/20 14:37:46 schmonz Exp $ + +GITHUB_PROJECT= ApprovalTests.Python +GITHUB_TAG= 0.2.6 +DISTNAME= 0.2.6 +PKGNAME= ${PYPKGPREFIX}-approvaltests-${DISTNAME} +CATEGORIES= devel python +MASTER_SITES= ${MASTER_SITE_GITHUB:=approvals/} +DIST_SUBDIR= ${GITHUB_PROJECT} + +MAINTAINER= schmonz@NetBSD.org +HOMEPAGE= https://approvaltests.com/ +COMMENT= Assertion/verification library to aid testing +LICENSE= apache-2.0 + +DEPENDS+= ${PYPKGPREFIX}-pyperclip>=1.5.27:../../x11/py-pyperclip + +WRKSRC= ${WRKDIR}/ApprovalTests.Python-0.2.6 +USE_LANGUAGES= # none + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-approvaltests/PLIST b/devel/py-approvaltests/PLIST new file mode 100644 index 00000000000..e4c5998b426 --- /dev/null +++ b/devel/py-approvaltests/PLIST @@ -0,0 +1,85 @@ +@comment $NetBSD: PLIST,v 1.1 2020/04/20 14:37:46 schmonz Exp $ +${PYSITELIB}/approvaltests-${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/approvaltests-${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/approvaltests-${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/approvaltests-${EGG_INFODIR}/requires.txt +${PYSITELIB}/approvaltests-${EGG_INFODIR}/top_level.txt +${PYSITELIB}/approvaltests/__init__.py +${PYSITELIB}/approvaltests/__init__.pyo +${PYSITELIB}/approvaltests/__init__.pyc +${PYSITELIB}/approvaltests/approval_exception.pyo +${PYSITELIB}/approvaltests/approval_exception.pyc +${PYSITELIB}/approvaltests/approvals.pyo +${PYSITELIB}/approvaltests/approvals.pyc +${PYSITELIB}/approvaltests/asserts.pyo +${PYSITELIB}/approvaltests/asserts.pyc +${PYSITELIB}/approvaltests/combination_approvals.pyo +${PYSITELIB}/approvaltests/combination_approvals.pyc +${PYSITELIB}/approvaltests/command.pyo +${PYSITELIB}/approvaltests/command.pyc +${PYSITELIB}/approvaltests/file_approver.pyo +${PYSITELIB}/approvaltests/file_approver.pyc +${PYSITELIB}/approvaltests/list_utils.pyo +${PYSITELIB}/approvaltests/list_utils.pyc +${PYSITELIB}/approvaltests/reporter_missing_exception.pyo +${PYSITELIB}/approvaltests/reporter_missing_exception.pyc +${PYSITELIB}/approvaltests/string_writer.pyo +${PYSITELIB}/approvaltests/string_writer.pyc +${PYSITELIB}/approvaltests/utils.pyo +${PYSITELIB}/approvaltests/utils.pyc +${PYSITELIB}/approvaltests/version.pyo +${PYSITELIB}/approvaltests/version.pyc +${PYSITELIB}/approvaltests/approval_exception.py +${PYSITELIB}/approvaltests/approvals.py +${PYSITELIB}/approvaltests/asserts.py +${PYSITELIB}/approvaltests/combination_approvals.py +${PYSITELIB}/approvaltests/command.py +${PYSITELIB}/approvaltests/core/__init__.py +${PYSITELIB}/approvaltests/core/__init__.pyo +${PYSITELIB}/approvaltests/core/__init__.pyc +${PYSITELIB}/approvaltests/core/namer.pyo +${PYSITELIB}/approvaltests/core/namer.pyc +${PYSITELIB}/approvaltests/core/reporter.pyo +${PYSITELIB}/approvaltests/core/reporter.pyc +${PYSITELIB}/approvaltests/core/writer.pyo +${PYSITELIB}/approvaltests/core/writer.pyc +${PYSITELIB}/approvaltests/core/namer.py +${PYSITELIB}/approvaltests/core/reporter.py +${PYSITELIB}/approvaltests/core/writer.py +${PYSITELIB}/approvaltests/file_approver.py +${PYSITELIB}/approvaltests/list_utils.py +${PYSITELIB}/approvaltests/reporter_missing_exception.py +${PYSITELIB}/approvaltests/reporters/__init__.py +${PYSITELIB}/approvaltests/reporters/__init__.pyo +${PYSITELIB}/approvaltests/reporters/__init__.pyc +${PYSITELIB}/approvaltests/reporters/clipboard_reporter.pyo +${PYSITELIB}/approvaltests/reporters/clipboard_reporter.pyc +${PYSITELIB}/approvaltests/reporters/diff_reporter.pyo +${PYSITELIB}/approvaltests/reporters/diff_reporter.pyc +${PYSITELIB}/approvaltests/reporters/first_working_reporter.pyo +${PYSITELIB}/approvaltests/reporters/first_working_reporter.pyc +${PYSITELIB}/approvaltests/reporters/generic_diff_reporter.pyo +${PYSITELIB}/approvaltests/reporters/generic_diff_reporter.pyc +${PYSITELIB}/approvaltests/reporters/generic_diff_reporter_factory.pyo +${PYSITELIB}/approvaltests/reporters/generic_diff_reporter_factory.pyc +${PYSITELIB}/approvaltests/reporters/multi_reporter.pyo +${PYSITELIB}/approvaltests/reporters/multi_reporter.pyc +${PYSITELIB}/approvaltests/reporters/python_native_reporter.pyo +${PYSITELIB}/approvaltests/reporters/python_native_reporter.pyc +${PYSITELIB}/approvaltests/reporters/received_file_launcher_reporter.pyo +${PYSITELIB}/approvaltests/reporters/received_file_launcher_reporter.pyc +${PYSITELIB}/approvaltests/reporters/testing_reporter.pyo +${PYSITELIB}/approvaltests/reporters/testing_reporter.pyc +${PYSITELIB}/approvaltests/reporters/clipboard_reporter.py +${PYSITELIB}/approvaltests/reporters/diff_reporter.py +${PYSITELIB}/approvaltests/reporters/first_working_reporter.py +${PYSITELIB}/approvaltests/reporters/generic_diff_reporter.py +${PYSITELIB}/approvaltests/reporters/generic_diff_reporter_factory.py +${PYSITELIB}/approvaltests/reporters/multi_reporter.py +${PYSITELIB}/approvaltests/reporters/python_native_reporter.py +${PYSITELIB}/approvaltests/reporters/received_file_launcher_reporter.py +${PYSITELIB}/approvaltests/reporters/reporters.json +${PYSITELIB}/approvaltests/reporters/testing_reporter.py +${PYSITELIB}/approvaltests/string_writer.py +${PYSITELIB}/approvaltests/utils.py +${PYSITELIB}/approvaltests/version.py diff --git a/devel/py-approvaltests/distinfo b/devel/py-approvaltests/distinfo new file mode 100644 index 00000000000..e2fff84a173 --- /dev/null +++ b/devel/py-approvaltests/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/04/20 14:37:46 schmonz Exp $ + +SHA1 (ApprovalTests.Python/0.2.6.tar.gz) = 02d0720f83c99334c753aae67e622701e11e7a83 +RMD160 (ApprovalTests.Python/0.2.6.tar.gz) = 28391ed9a8204d82636034c19073224d38c57737 +SHA512 (ApprovalTests.Python/0.2.6.tar.gz) = ef9ad8280b43c415d5181b5f3a8fab368aabe1831e681a0fbfabd895ead3231807104a109b943d9d30853dfd3e250cbbd6eff55c8732648d96beabb3aa475303 +Size (ApprovalTests.Python/0.2.6.tar.gz) = 22616 bytes |