55 lines
1.6 KiB
INI
55 lines
1.6 KiB
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:}
|
|
envlist = py3-django22-codestyle-coverage
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
|
WCSCTL=wcs/wcsctl.py
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
fast: FAST=--nomigrations
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc -Wignore
|
|
deps =
|
|
django22: django>=2.2,<2.3
|
|
psycopg2-binary<2.9
|
|
pytest-cov
|
|
pytest-django
|
|
pytest!=6.0.0
|
|
WebTest
|
|
mock<4
|
|
httmock
|
|
python-dateutil
|
|
pylint
|
|
pylint-django
|
|
django-webtest<1.9.3
|
|
lxml
|
|
mohawk
|
|
pytest-freezegun
|
|
pytest-httpbin
|
|
pytest-localserver
|
|
pytest-sftpserver
|
|
Quixote>=3.0,<3.2
|
|
vobject
|
|
django-ratelimit
|
|
pyquery
|
|
zeep<3.3
|
|
codestyle: pre-commit
|
|
commands =
|
|
./get_wcs.sh
|
|
py.test {posargs: {env:FAST:} {env:COVERAGE:} {env:JUNIT:} tests/}
|
|
coverage: ./pylint.sh passerelle/
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[pytest]
|
|
filterwarnings = default
|
|
# to delete when using python3, it's a warning inside ElementTree
|
|
ignore:.*tree.iter().*:PendingDeprecationWarning
|
|
# pyproj warning about deprecation of '+init=authority:code which comes from using Proj(init='EPSG:4326') instead of Proj('EPSG:4326')
|
|
# I tried the new syntax but it broke some opengis tests
|
|
module:.*init.*authority.*code.*syntax is deprecated:DeprecationWarning:pyproj
|
|
# wcs root directory must be renamed to fix this one
|
|
ignore:Not importing directory.*/wcs':ImportWarning
|