Allow to only run unit tests with Tox.

This commit is contained in:
Dan Helfman 2019-05-19 22:07:15 +00:00 committed by Gitea
commit c164684703
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,7 @@ install_command =
commands_pre =
find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
commands =
pytest
pytest {posargs}
py36,py37: black --check .
isort --recursive --check-only --settings-path setup.cfg .
flake8 .
@ -25,6 +25,10 @@ basepython = python3.7
commands =
black {posargs} .
[testenv:test]
commands =
pytest {posargs}
[testenv:end-to-end]
deps = -rtest_requirements.txt
commands =