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

View file

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