django-axes/tox.ini
Martin Bächtold 687e51eae0
Test against Python 2.7.
As discussed in https://github.com/jazzband/django-axes/issues/264 and https://github.com/jazzband/django-axes/issues/266.

We need to install `mock` when testing against Python 2.7 because `mock` has been added to the standard lib only starting with Python 3.3.
2017-11-23 07:44:15 +01:00

22 lines
483 B
INI

[tox]
envlist =
py{27,35,36}-django-111
py{35,36}-django-20
py{35,36}-django-master
[testenv]
deps =
py27: mock
django-appconf
coveralls
django-111: Django>=1.11,<2.0
django-20: Django>=2.0a1,<2.1
django-master: https://github.com/django/django/archive/master.tar.gz
usedevelop = True
ignore_outcome =
django-master: True
commands =
coverage run -a --source=axes runtests.py -v2
coverage report
setenv =
PYTHONDONTWRITEBYTECODE=1