git: 2ec609563e90 - main - www/py-dj32-django-taggit: Add test suite
Kai Knoblich
kai at FreeBSD.org
Tue Aug 10 16:09:42 UTC 2021
The branch main has been updated by kai:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2ec609563e90d31c90cf5a25addf050a08fcd9e9
commit 2ec609563e90d31c90cf5a25addf050a08fcd9e9
Author: Kai Knoblich <kai at FreeBSD.org>
AuthorDate: 2021-08-10 15:23:12 +0000
Commit: Kai Knoblich <kai at FreeBSD.org>
CommitDate: 2021-08-10 15:43:22 +0000
www/py-dj32-django-taggit: Add test suite
Keep this port in sync with the related ports, which also got a
test suite recently.
---
www/py-dj32-django-taggit/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/www/py-dj32-django-taggit/Makefile b/www/py-dj32-django-taggit/Makefile
index 8e7f0e5e016d..6e39c8e312ce 100644
--- a/www/py-dj32-django-taggit/Makefile
+++ b/www/py-dj32-django-taggit/Makefile
@@ -11,6 +11,7 @@ LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=2.2:www/py-django32@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dj32-djangorestframework>0:www/py-dj32-djangorestframework@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist distutils
@@ -20,4 +21,7 @@ CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-taggit \
NO_ARCH= yes
+do-test:
+ @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m django test --settings=tests.settings -v3
+
.include <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list