2019-02-17 11:33:59 +01:00
|
|
|
[tox]
|
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/barbacompta/{env:BRANCH_NAME:}
|
2021-01-12 15:11:01 +01:00
|
|
|
envlist = py3-pylint
|
2019-02-17 11:33:59 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=eo_gestion.settings
|
|
|
|
BARBACOMPTA_SETTINGS_FILE=tests/settings.py
|
|
|
|
deps =
|
2021-06-17 08:50:01 +02:00
|
|
|
psycopg2-binary<2.9
|
2019-12-12 20:51:01 +01:00
|
|
|
pytest
|
2019-02-17 11:33:59 +01:00
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2019-12-12 20:51:01 +01:00
|
|
|
pytest-freezegun
|
2020-05-25 16:10:40 +02:00
|
|
|
httmock
|
2019-12-12 20:51:01 +01:00
|
|
|
pylint
|
|
|
|
pylint-django
|
|
|
|
django-webtest
|
2019-02-17 11:33:59 +01:00
|
|
|
django-mellon
|
2019-12-12 20:51:01 +01:00
|
|
|
pdbpp
|
2021-01-12 15:11:01 +01:00
|
|
|
uwsgidecorators
|
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/}
|
2021-01-12 15:11:01 +01:00
|
|
|
pylint: ./pylint.sh eo_gestion/
|
2019-12-12 20:51:01 +01:00
|
|
|
|
2020-04-15 12:35:10 +02:00
|
|
|
[testenv:manage]
|
2020-02-01 14:31:57 +01:00
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=eo_gestion.settings
|
|
|
|
commands =
|
2020-04-15 12:35:10 +02:00
|
|
|
./manage.py {posargs:--help}
|
2020-02-01 14:31:57 +01:00
|
|
|
|
2019-12-12 20:51:01 +01:00
|
|
|
[pytest]
|
|
|
|
filterwarnings=
|
|
|
|
ignore:Using or importing the ABCs from
|
|
|
|
junit_family=xunit2
|