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:}
|
2023-01-11 11:30:00 +01:00
|
|
|
envlist =
|
|
|
|
py3-dj32
|
2017-01-02 17:48:23 +01:00
|
|
|
|
|
|
|
[testenv]
|
2023-02-27 11:40:14 +01:00
|
|
|
passenv=
|
|
|
|
PG*
|
2017-01-02 17:48:23 +01:00
|
|
|
setenv =
|
2023-02-27 11:40:14 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=tests.settings
|
2020-09-01 14:36:18 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2023-01-11 12:20:07 +01:00
|
|
|
JUNIT={tty::--junitxml=junit-{envname}.xml}
|
|
|
|
COVERAGE={tty::--cov-report xml --cov-report html --cov=zoo/}
|
|
|
|
usedevelop = true
|
2022-08-05 22:36:13 +02:00
|
|
|
deps =
|
2023-01-11 11:30:00 +01:00
|
|
|
dj32: django>=3.2,<3.3
|
2023-03-23 11:19:03 +01:00
|
|
|
psycopg2-binary
|
2017-04-26 14:02:11 +02:00
|
|
|
pip>8
|
2017-02-28 23:36:38 +01:00
|
|
|
pytest-flakes
|
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 =
|
2023-01-11 12:20:07 +01:00
|
|
|
py.test {posargs:{env:JUNIT:} {env:COVERAGE:} {env:FLAKES:} tests/}
|
2023-01-11 12:00:42 +01:00
|
|
|
|
|
|
|
[pytest]
|
|
|
|
filterwarnings =
|
|
|
|
error
|
|
|
|
ignore:_SixMetaPathImporter:ImportWarning
|
|
|
|
ignore:Plural value:DeprecationWarning
|
|
|
|
junit_family=xunit2
|