From 3d705b29de71cb19119ecf61cb750b1ba27c9522 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 15 May 2020 10:42:59 +0100 Subject: [PATCH] add 'fontTools' package to default pytest testpaths so that it will run the embedded doctests when simply invoking 'pytest' with no arguments see https://github.com/fonttools/fonttools/pull/1957#issuecomment-629116982 --- setup.cfg | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 752ac3663..4de4f5c8c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,6 +34,7 @@ license_file = LICENSE minversion = 3.0 testpaths = Tests + fontTools python_files = *_test.py python_classes = diff --git a/tox.ini b/tox.ini index 72763167a..df6358c2e 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ commands = cy: python -c "from fontTools.cu2qu.cu2qu import COMPILED; assert COMPILED" !cy: python -c "from fontTools.cu2qu.cu2qu import COMPILED; assert not COMPILED" # test with or without coverage, passing extra positonal args to pytest - cov: coverage run --parallel-mode -m pytest {posargs:Tests fontTools} + cov: coverage run --parallel-mode -m pytest {posargs} !cov: pytest {posargs:Tests fontTools} [testenv:htmlcov]