You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
INI
50 lines
1.0 KiB
INI
# 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]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/{env:BRANCH_NAME:}
|
|
envlist =
|
|
py3-dj32
|
|
|
|
[testenv]
|
|
passenv=
|
|
PG*
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=tests.settings
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
JUNIT={tty::--junitxml=junit-{envname}.xml}
|
|
COVERAGE={tty::--cov-report xml --cov-report html --cov=zoo/}
|
|
usedevelop = true
|
|
deps =
|
|
dj32: django>=3.2,<3.3
|
|
psycopg2-binary
|
|
pip>8
|
|
pytest-flakes
|
|
coverage
|
|
pytest-cov
|
|
pytest-django
|
|
mock<4
|
|
pytest>=3.3.0
|
|
lxml
|
|
cssselect
|
|
pylint
|
|
pylint-django
|
|
django-webtest
|
|
WebTest
|
|
pyquery
|
|
httmock
|
|
pytz
|
|
faker
|
|
pytest-freezegun
|
|
commands =
|
|
py.test {posargs:{env:JUNIT:} {env:COVERAGE:} {env:FLAKES:} tests/}
|
|
|
|
[pytest]
|
|
filterwarnings =
|
|
error
|
|
ignore:_SixMetaPathImporter:ImportWarning
|
|
ignore:Plural value:DeprecationWarning
|
|
junit_family=xunit2
|