2017-01-02 17:48:23 +01:00
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
|
|
[tox]
|
2020-03-23 15:07:15 +01:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/{env:BRANCH_NAME:}
|
2022-08-05 22:36:13 +02:00
|
|
|
envlist = py3-dj22-coverage
|
2017-01-02 17:48:23 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
# django.contrib.auth is not tested it does not work with our templates
|
|
|
|
whitelist_externals =
|
|
|
|
/bin/mv
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=zoo.settings
|
2020-09-01 14:36:18 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2019-02-28 09:11:42 +01:00
|
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=zoo/
|
2017-01-02 17:48:23 +01:00
|
|
|
fast: FAST=--nomigrations
|
2017-03-22 13:08:49 +01:00
|
|
|
flakes: FLAKES=--flakes
|
2017-01-02 17:48:23 +01:00
|
|
|
usedevelop =
|
|
|
|
coverage: True
|
|
|
|
nocoverage: False
|
2022-08-05 22:36:13 +02:00
|
|
|
deps =
|
2021-03-01 12:12:22 +01:00
|
|
|
dj22: django<2.3
|
2021-03-01 13:43:00 +01:00
|
|
|
djangorestframework>=3.9.2,<3.10
|
2017-04-26 14:02:11 +02:00
|
|
|
pip>8
|
2017-02-28 23:36:38 +01:00
|
|
|
pytest-flakes
|
2021-06-17 08:50:04 +02:00
|
|
|
pg: psycopg2<2.9
|
2017-01-02 17:48:23 +01:00
|
|
|
coverage
|
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2020-10-06 09:51:53 +02:00
|
|
|
mock<4
|
2017-11-30 11:04:43 +01:00
|
|
|
pytest>=3.3.0
|
2017-01-02 17:48:23 +01:00
|
|
|
lxml
|
|
|
|
cssselect
|
|
|
|
pylint
|
|
|
|
pylint-django
|
|
|
|
django-webtest
|
|
|
|
WebTest
|
|
|
|
pyquery
|
|
|
|
httmock
|
|
|
|
pytz
|
|
|
|
faker
|
2019-03-28 17:52:16 +01:00
|
|
|
pytest-freezegun
|
2017-01-02 17:48:23 +01:00
|
|
|
commands =
|
2017-03-22 13:08:49 +01:00
|
|
|
py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests}
|