Allow to only run unit tests with Tox.
This commit is contained in:
commit
c164684703
1 changed files with 5 additions and 1 deletions
6
tox.ini
6
tox.ini
|
@ -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 =
|
||||||
|
|
Loading…
Reference in a new issue