2012-06-05 02:05:59 +02:00
|
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
2016-01-02 18:07:00 +01:00
|
|
|
|
# in multiple virtualenvs. See ./CONTRIBUTING.rst
|
2014-04-24 21:36:03 +02:00
|
|
|
|
|
2012-06-05 02:05:59 +02:00
|
|
|
|
|
|
|
|
|
[tox]
|
2016-07-19 18:23:18 +02:00
|
|
|
|
envlist = py26, py27, py35, pypy, codestyle
|
2014-04-24 21:36:03 +02:00
|
|
|
|
|
2012-06-05 02:05:59 +02:00
|
|
|
|
|
|
|
|
|
[testenv]
|
2014-04-26 16:50:31 +02:00
|
|
|
|
deps =
|
2016-01-02 18:07:00 +01:00
|
|
|
|
mock
|
2014-04-26 16:50:31 +02:00
|
|
|
|
pytest
|
2015-02-16 05:33:57 +01:00
|
|
|
|
pytest-httpbin>=0.0.6
|
2012-06-05 02:05:59 +02:00
|
|
|
|
|
2016-01-02 18:07:00 +01:00
|
|
|
|
|
2014-04-24 21:36:03 +02:00
|
|
|
|
commands =
|
2016-01-02 18:07:00 +01:00
|
|
|
|
# NOTE: the order of the directories in posargs seems to matter.
|
|
|
|
|
# When changed, then many ImportMismatchError exceptions occurrs.
|
|
|
|
|
py.test \
|
|
|
|
|
--verbose \
|
|
|
|
|
--doctest-modules \
|
|
|
|
|
{posargs:./httpie ./tests}
|
2016-07-19 18:23:18 +02:00
|
|
|
|
|
|
|
|
|
[testenv:codestyle]
|
|
|
|
|
deps = pycodestyle
|
|
|
|
|
commands =
|
|
|
|
|
pycodestyle \
|
|
|
|
|
--ignore=E241,E501
|
2016-07-26 22:59:34 +02:00
|
|
|
|
# 241 - multiple spaces after ‘,’
|
|
|
|
|
# 501 - line too long
|