2012-06-05 03:05:59 +03:00
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
2016-01-02 19:07:00 +02:00
|
|
|
# in multiple virtualenvs. See ./CONTRIBUTING.rst
|
2014-04-24 22:36:03 +03:00
|
|
|
|
2012-06-05 03:05:59 +03:00
|
|
|
|
|
|
|
[tox]
|
2016-07-19 18:23:18 +02:00
|
|
|
envlist = py26, py27, py35, pypy, codestyle
|
2014-04-24 22:36:03 +03:00
|
|
|
|
2012-06-05 03:05:59 +03:00
|
|
|
|
|
|
|
[testenv]
|
2014-04-26 17:50:31 +03:00
|
|
|
deps =
|
2016-01-02 19:07:00 +02:00
|
|
|
mock
|
2014-04-26 17:50:31 +03:00
|
|
|
pytest
|
2015-02-16 06:33:57 +02:00
|
|
|
pytest-httpbin>=0.0.6
|
2012-06-05 03:05:59 +03:00
|
|
|
|
2016-01-02 19:07:00 +02:00
|
|
|
|
2014-04-24 22:36:03 +03:00
|
|
|
commands =
|
2016-01-02 19:07:00 +02: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
|