2020-02-05 15:49:53 +01:00
|
|
|
[tox]
|
2021-02-15 17:51:42 +01:00
|
|
|
envlist = py3-black-junit-coverage
|
2020-02-05 15:49:53 +01:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle-montpellier-sig/{env:BRANCH_NAME:}
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop =
|
|
|
|
coverage: True
|
|
|
|
nocoverage: False
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
2020-05-20 19:21:27 +02:00
|
|
|
DB_ENGINE=django.db.backends.postgresql_psycopg2
|
2020-09-01 14:42:47 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2020-02-05 15:49:53 +01:00
|
|
|
coverage: COVERAGE=--cov-report xml --cov-report html --cov=passerelle_montpellier_sig/
|
|
|
|
junit: JUNIT=--junitxml=junit-{envname}.xml
|
|
|
|
deps =
|
2020-12-26 15:21:16 +01:00
|
|
|
https://git.entrouvert.org/passerelle.git/snapshot/passerelle-main.tar.gz
|
2020-05-20 19:21:27 +02:00
|
|
|
psycopg2-binary
|
2020-02-05 15:49:53 +01:00
|
|
|
httmock
|
2020-04-26 08:28:06 +02:00
|
|
|
psycopg2
|
2020-02-05 15:49:53 +01:00
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
|
|
|
xmlschema<1.1
|
2021-02-15 17:51:42 +01:00
|
|
|
black: pre-commit
|
2020-02-05 15:49:53 +01:00
|
|
|
commands =
|
|
|
|
py.test {posargs: {env:JUNIT:} {env:COVERAGE:} tests/}
|
2021-02-15 17:51:42 +01:00
|
|
|
black: pre-commit run black --all-files --show-diff-on-failure
|