snappass/tox.ini
Samuel Dion-Girardeau 00f6964a90 Fix python2.6 support for tests
- "{}".format('foo') does not work on python2.6, as the index needs to be explicitly specified.
- assertIn(x, y) was only introduced in 2.7, reverting to assertTrue(x in y)

Updated test environments definitions and docs accordingly.
2016-08-12 18:47:02 -04:00

10 lines
217 B
INI

[tox]
envlist = py26, py27, py33, py34, py35
[testenv]
deps =
pytest
pytest-cov
commands =
pip install -r requirements.txt --use-wheel
py.test --junitxml=junit-{envname}.xml --cov-report xml tests.py