Skip to content

Commit

Permalink
devel/py-expecttest: New port:Implementation of expect tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Feb 12, 2024
1 parent b5425aa commit e4dafdd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4651,6 +4651,7 @@
SUBDIR += py-exceptiongroup
SUBDIR += py-executing
SUBDIR += py-expandvars
SUBDIR += py-expecttest
SUBDIR += py-expiringdict
SUBDIR += py-extras
SUBDIR += py-extremes
Expand Down
22 changes: 22 additions & 0 deletions devel/py-expecttest/Makefile
@@ -0,0 +1,22 @@
PORTNAME= expecttest
DISTVERSION= 0.2.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= yuri@FreeBSD.org
COMMENT= Implementation of expect tests
WWW= https://github.com/ezyang/expecttest

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}

USES= python
USE_PYTHON= pep517 autoplist

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-expecttest/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1707768829
SHA256 (expecttest-0.2.1.tar.gz) = e52b1cf8a6f84506e6962a0bbdd248ea442124d826e849f263ec1c322ebb73f5
SIZE (expecttest-0.2.1.tar.gz) = 6873
6 changes: 6 additions & 0 deletions devel/py-expecttest/pkg-descr
@@ -0,0 +1,6 @@
The expecttest library implements expect tests (also known as "golden" tests).
Expect tests are a method of writing tests where instead of hard-coding the
expected output of a test, you run the test to get the output, and the test
framework automatically populates the expected output. If the output of the
test changes, you can rerun the test with the environment variable
EXPECTTEST_ACCEPT=1 to automatically update the expected output.

0 comments on commit e4dafdd

Please sign in to comment.