# 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] envlist = py3,codestyle toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/eopayment/{env:BRANCH_NAME:} [testenv] # django.contrib.auth is not tested it does not work with our templates setenv = SETUPTOOLS_USE_DISTUTILS=stdlib commands = py3: py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov-config .coveragerc --cov=eopayment/ tests} codestyle: pre-commit run --all-files --show-diff-on-failure usedevelop = True deps = coverage pytest pytest-freezegun pytest-cov mock<4 httmock lxml pre-commit [pytest] filterwarnings = ignore:defusedxml.lxml is no longer supported.* markers = update_data junit_family=xunit2