2015-07-16 14:28:39 +02: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.
|
|
|
|
|
2018-03-26 09:56:16 +02:00
|
|
|
[tox]
|
|
|
|
envlist = py2,py3
|
2018-10-03 09:28:32 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/eopayment/{env:BRANCH_NAME:}
|
2018-03-26 09:56:16 +02:00
|
|
|
|
2015-07-16 14:28:39 +02:00
|
|
|
[testenv]
|
|
|
|
# django.contrib.auth is not tested it does not work with our templates
|
2020-09-01 11:21:07 +02:00
|
|
|
usedevelop = True
|
|
|
|
setenv =
|
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2015-07-16 14:28:39 +02:00
|
|
|
commands =
|
2019-12-09 13:31:27 +01:00
|
|
|
py2: py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=eopayment/ tests}
|
2020-04-10 11:03:23 +02:00
|
|
|
py3: py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=eopayment/ tests}
|
2015-07-16 14:28:39 +02:00
|
|
|
deps = coverage
|
2016-02-01 17:59:01 +01:00
|
|
|
pytest
|
2018-10-12 15:35:23 +02:00
|
|
|
pytest-freezegun
|
2020-04-10 11:03:23 +02:00
|
|
|
pytest-cov
|
2018-10-09 16:43:41 +02:00
|
|
|
mock
|
2019-12-12 10:50:38 +01:00
|
|
|
httmock
|
|
|
|
lxml
|
|
|
|
|
|
|
|
[pytest]
|
|
|
|
filterwarnings =
|
|
|
|
ignore:defusedxml.lxml is no longer supported.*
|
|
|
|
markers =
|
|
|
|
update_data
|
2020-04-10 11:38:22 +02:00
|
|
|
junit_family=xunit2
|