git: 58f143af6649 - main - devel/py-applicationinsights: Convert to USE_PYTHON=unittest

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 09 Jun 2022 23:19:41 UTC
The branch main has been updated by sunpoet:

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

commit 58f143af66496eb81e88bf63590ea7281f9ac1e0
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-09 23:10:40 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-09 23:16:02 +0000

    devel/py-applicationinsights: Convert to USE_PYTHON=unittest
    
    - Add TEST_DEPENDS
---
 devel/py-applicationinsights/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/devel/py-applicationinsights/Makefile b/devel/py-applicationinsights/Makefile
index f843ac1ee6a2..c9759c19021a 100644
--- a/devel/py-applicationinsights/Makefile
+++ b/devel/py-applicationinsights/Makefile
@@ -10,12 +10,11 @@ COMMENT=	Applications Insights SDK for Python
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django32>=0:www/py-django32@${PY_FLAVOR}
+
 USES=		python:3.6+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils unittest
 
 NO_ARCH=	yes
 
-do-test:
-	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)
-
 .include <bsd.port.mk>