2016-11-01 20:01:57 +01:00
|
|
|
[tox]
|
2018-03-05 23:30:36 +01:00
|
|
|
envlist = py{27,34,35,36}-pytest{30,31,32,33,34},linting,norewrite
|
2016-11-01 20:01:57 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
passenv = USER USERNAME
|
|
|
|
deps =
|
|
|
|
coverage
|
|
|
|
pytest30: pytest~=3.0
|
2018-03-05 23:30:36 +01:00
|
|
|
pytest31: pytest~=3.1
|
|
|
|
pytest32: pytest~=3.2
|
|
|
|
pytest33: pytest~=3.3
|
|
|
|
pytest34: pytest~=3.4
|
2016-11-01 20:01:57 +01:00
|
|
|
commands =
|
|
|
|
coverage run --append --source=pytest_mock.py -m pytest test_pytest_mock.py
|
|
|
|
|
2018-03-05 23:30:36 +01:00
|
|
|
[testenv:norewrite]
|
|
|
|
commands =
|
|
|
|
pytest test_pytest_mock.py --assert=plain -ra
|
|
|
|
|
2016-11-01 20:01:57 +01:00
|
|
|
[testenv:linting]
|
|
|
|
skip_install=True
|
|
|
|
deps =
|
|
|
|
pytest-flakes
|
|
|
|
restructuredtext_lint
|
|
|
|
pygments
|
|
|
|
commands =
|
|
|
|
py.test --flakes pytest_mock.py test_pytest_mock.py -m flakes
|
|
|
|
rst-lint CHANGELOG.rst README.rst
|