git: b18f62915afa - main - databases/py-pgcli: fix tests

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Thu, 21 Apr 2022 10:59:21 UTC
The branch main has been updated by amdmi3:

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

commit b18f62915afacc17a458602975faddc466650ea0
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-20 17:13:45 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-21 10:58:40 +0000

    databases/py-pgcli: fix tests
    
    Switch to USES=pytest, add missing test depend, and document one
    failing test
    
    Approved by:    portmgr blanket
---
 databases/py-pgcli/Makefile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/databases/py-pgcli/Makefile b/databases/py-pgcli/Makefile
index 819a8fda9855..ee2cdefdf2b4 100644
--- a/databases/py-pgcli/Makefile
+++ b/databases/py-pgcli/Makefile
@@ -24,10 +24,12 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cli-helpers>=2.1.1:devel/py-cli-helpers@${PY
 		${PYTHON_PKGNAMEPREFIX}sqlparse>=0.3.0<0.5:databases/py-sqlparse@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:devel/py-mock@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pexpect>=0:misc/py-pexpect@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest>=2.7.0,1:devel/py-pytest@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}pytest>=2.7.0,1:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sshtunnel>=0:net/py-sshtunnel@${PY_FLAVOR}
 
-USES=		pgsql python:3.6+
+USES=		pgsql python:3.6+ pytest
 USE_PYTHON=	autoplist concurrent distutils
+PYTEST_BROKEN_TESTS=	test_obfuscate_process_password
 
 NO_ARCH=	yes
 
@@ -36,7 +38,4 @@ KEYRING_DESC=	keyring support
 
 KEYRING_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}keyring>=12.2.0,1:security/py-keyring@${PY_FLAVOR}
 
-do-test:
-	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
-
 .include <bsd.port.mk>