git: 8b75b9f6b00a - main - textproc/lookatme: switch to USES=pytest

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Mon, 18 Apr 2022 10:41:47 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b75b9f6b00a8099d0322277d786ce5937a4a47f

commit 8b75b9f6b00a8099d0322277d786ce5937a4a47f
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-15 15:20:34 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-18 10:32:17 +0000

    textproc/lookatme: switch to USES=pytest
---
 textproc/lookatme/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/textproc/lookatme/Makefile b/textproc/lookatme/Makefile
index e922942eda66..a9a2f246a3a7 100644
--- a/textproc/lookatme/Makefile
+++ b/textproc/lookatme/Makefile
@@ -17,18 +17,18 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}marshmallow>=0:devel/py-marshmallow@${PY_FLA
 		${PYTHON_PKGNAMEPREFIX}mistune>=0:textproc/py-mistune@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}urwid>=0:devel/py-urwid@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR}
 
-USES=		cpe python:3.6+
+USES=		cpe python:3.6+ pytest
 CPE_VENDOR=	${PORTNAME}_project
 USE_PYTHON=	autoplist distutils
 NO_ARCH=	yes
 
+# https://github.com/d0c-s4vage/lookatme/issues/126
+PYTEST_BROKEN_TESTS=	test_sanity_check_that_errors_are_detected \
+			test_styles_defaults
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|>.*||' ${WRKSRC}/requirements.txt
 
-do-test:
-	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
-
 .include <bsd.port.mk>