mirror of
https://github.com/ansible/tower-cli.git
synced 2026-02-05 15:48:09 +01:00
AWX/Tower projects rely on pytest to run their test suite. Luckily, pytest can run nosetest perfectly fine. In order to be as coherent as posible with the ecosystem, it might be a good idea to run pytest also in tower-cli. Signed-off-by: Yanis Guenane <yguenane@redhat.com>
41 lines
586 B
INI
41 lines
586 B
INI
[testenv]
|
|
commands = coverage run -m pytest {posargs} -v
|
|
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/tests/requirements.txt
|
|
|
|
[testenv:py36]
|
|
deps =
|
|
{[testenv]deps}
|
|
mock
|
|
|
|
[testenv:py35]
|
|
deps =
|
|
{[testenv]deps}
|
|
mock
|
|
|
|
[testenv:py34]
|
|
deps =
|
|
{[testenv]deps}
|
|
mock
|
|
|
|
[testenv:py27]
|
|
deps =
|
|
{[testenv]deps}
|
|
mock
|
|
|
|
[testenv:flake8]
|
|
deps = flake8
|
|
commands = flake8 {toxinidir}
|
|
|
|
[testenv:docs]
|
|
deps = {[testenv]deps}
|
|
sphinx
|
|
changedir = docs
|
|
commands = python source/api_ref/generate_tables.py
|
|
make html
|
|
|
|
[flake8]
|
|
max-line-length=120
|