2019-02-17 11:33:59 +01:00
|
|
|
[tox]
|
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/barbacompta/{env:BRANCH_NAME:}
|
2021-11-19 14:08:03 +01:00
|
|
|
envlist = py3,code-style
|
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
envlist =
|
|
|
|
code-style
|
|
|
|
py3
|
2021-11-24 15:30:20 +01:00
|
|
|
pylint
|
2019-02-17 11:33:59 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=eo_gestion.settings
|
|
|
|
BARBACOMPTA_SETTINGS_FILE=tests/settings.py
|
2021-11-20 23:40:35 +01:00
|
|
|
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
|
|
|
|
COVERAGE_CONFIG=--cov --cov-append --cov-report xml --cov-report html --cov-config=tox.ini
|
|
|
|
COVERAGE={tty::{env:COVERAGE_CONFIG}}
|
|
|
|
# run with "-e py3-coverage" to get coverage
|
|
|
|
coverage: COVERAGE={env:COVERAGE_CONFIG}
|
2019-02-17 11:33:59 +01:00
|
|
|
deps =
|
2021-11-19 14:08:03 +01:00
|
|
|
-rtest-requirements.txt
|
2021-12-16 15:26:27 +01:00
|
|
|
factur-x==1.8
|
2024-02-20 16:09:02 +01:00
|
|
|
pypdf
|
2019-02-17 11:33:59 +01:00
|
|
|
commands =
|
2021-11-20 23:40:35 +01:00
|
|
|
py.test {env:COVERAGE:} {env:JUNIT:} {posargs}
|
2021-11-19 14:08:03 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# pytest config
|
|
|
|
#
|
|
|
|
|
|
|
|
[pytest]
|
|
|
|
filterwarnings=
|
|
|
|
ignore:Using or importing the ABCs from
|
2024-01-15 13:39:56 +01:00
|
|
|
ignore:.*pkg_resources.declare_namespace.*
|
|
|
|
ignore:.*pkg_resources is deprecated as an API.*
|
2021-11-19 14:08:03 +01:00
|
|
|
junit_family=xunit2
|
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
|
2022-06-17 11:19:48 +02:00
|
|
|
deps =
|
|
|
|
psycopg2-binary
|
|
|
|
ipython
|
2020-02-01 14:31:57 +01:00
|
|
|
commands =
|
2024-01-11 12:55:49 +01:00
|
|
|
python3 ./manage.py {posargs:--help}
|
2020-02-01 14:31:57 +01:00
|
|
|
|
2021-11-19 13:55:48 +01:00
|
|
|
[testenv:code-style]
|
|
|
|
skip_install = true
|
|
|
|
deps =
|
|
|
|
pre-commit
|
|
|
|
commands =
|
|
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
|
2021-11-19 14:08:03 +01:00
|
|
|
[testenv:pylint]
|
2021-11-24 15:30:20 +01:00
|
|
|
basepython = python3
|
2021-11-19 14:08:03 +01:00
|
|
|
deps =
|
|
|
|
-rtest-requirements.txt
|
2023-10-03 06:20:35 +02:00
|
|
|
pylint<3
|
|
|
|
astroid<3
|
2021-11-19 14:08:03 +01:00
|
|
|
pylint-django
|
|
|
|
commands =
|
|
|
|
./pylint.sh eo_gestion/ tests/
|