mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-05 22:24:46 +00:00
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.
22 lines
483 B
INI
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
|