Skip to content

Commit

Permalink
tox considered harmful for testing under poudriere, so run pytest dir…
Browse files Browse the repository at this point in the history
…ectly.

Turns out that just running tox din't actually do anything worthwhile.
Actually running the unit tests produces a small number of failures.
  • Loading branch information
infracaninophile committed Sep 21, 2018
1 parent be44c17 commit 547c541
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion devel/py-cookiecutter/Makefile
Expand Up @@ -31,7 +31,17 @@ USE_PYTHON= autoplist concurrent distutils

NO_ARCH= yes


# pytest needs a UTF-8 environment, and it will try and write outside
# ${WRKDIR} unless told not to. Even so, these tests have failures:
#
# cookiecutter/utils.py 50 3 94%
# cookiecutter/zipfile.py 61 2 97%

TEST_ENV= TMPDIR=${WRKDIR} HOME=${WRKDIR} LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8

do-test:
@cd ${WRKSRC} && ${LOCALBASE}/bin/tox-${PYTHON_VER}
@cd ${WRKSRC} && \
env ${TEST_ENV} ${LOCALBASE}/bin/pytest-${PYTHON_VER} --cov=cookiecutter tests

.include <bsd.port.mk>

0 comments on commit 547c541

Please sign in to comment.