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
This commit is contained in:
Cosimo Lupo 2020-05-15 10:42:59 +01:00
parent d3bd81335e
commit 3d705b29de
No known key found for this signature in database
GPG Key ID: 179A8F0895A02F4F
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ license_file = LICENSE
minversion = 3.0
testpaths =
Tests
fontTools
python_files =
*_test.py
python_classes =

View File

@ -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]