2019-02-17 11:33:59 +01:00
|
|
|
[tox]
|
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/barbacompta/{env:BRANCH_NAME:}
|
2020-01-30 18:11:57 +01:00
|
|
|
envlist = py3
|
2019-02-17 11:33:59 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=eo_gestion.settings
|
|
|
|
BARBACOMPTA_SETTINGS_FILE=tests/settings.py
|
|
|
|
deps =
|
2020-01-30 18:11:57 +01:00
|
|
|
Django<2
|
2019-12-12 20:51:01 +01:00
|
|
|
psycopg2-binary
|
|
|
|
pytest
|
2019-02-17 11:33:59 +01:00
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2019-12-12 20:51:01 +01:00
|
|
|
pytest-freezegun
|
|
|
|
pylint
|
|
|
|
pylint-django
|
|
|
|
django-webtest
|
2019-02-17 11:33:59 +01:00
|
|
|
django-mellon
|
2019-12-12 20:51:01 +01:00
|
|
|
pdbpp
|
2019-02-17 11:33:59 +01:00
|
|
|
commands =
|
2019-12-13 16:11:50 +01:00
|
|
|
py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=eo_gestion/ tests/}
|
2019-12-12 20:51:01 +01:00
|
|
|
|
2020-02-01 14:31:57 +01:00
|
|
|
[testenv:runserver]
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=eo_gestion.settings
|
|
|
|
commands =
|
|
|
|
./manage.py runserver
|
|
|
|
|
2019-12-12 20:51:01 +01:00
|
|
|
[testenv:pylint]
|
|
|
|
basepython = python3
|
|
|
|
deps=
|
|
|
|
django>=1.11,<1.12
|
|
|
|
pylint
|
|
|
|
pylint-django
|
|
|
|
uwsgidecorators
|
|
|
|
commands =
|
|
|
|
./pylint.sh eo_gestion/
|
|
|
|
|
|
|
|
[pytest]
|
|
|
|
filterwarnings=
|
|
|
|
ignore:Using or importing the ABCs from
|
|
|
|
junit_family=xunit2
|