2016-03-03 17:16:54 +01:00
|
|
|
[tox]
|
2018-08-09 17:24:50 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:}
|
2021-02-20 16:27:47 +01:00
|
|
|
envlist = py3-django111-black-coverage,py3-django22
|
2016-03-03 17:16:54 +01:00
|
|
|
|
|
|
|
[testenv]
|
2018-08-09 17:24:50 +02:00
|
|
|
usedevelop = True
|
2016-03-03 17:16:54 +01:00
|
|
|
setenv =
|
2016-03-10 14:05:24 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
2019-03-12 11:49:22 +01:00
|
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
2019-04-01 13:08:38 +02:00
|
|
|
WCSCTL=wcs/wcsctl.py
|
2020-09-01 14:25:03 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2016-10-07 10:56:48 +02:00
|
|
|
fast: FAST=--nomigrations
|
2020-01-24 12:20:48 +01:00
|
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc -Wignore
|
2016-03-03 17:16:54 +01:00
|
|
|
deps =
|
2017-10-25 23:42:26 +02:00
|
|
|
django111: django>=1.11,<1.12
|
2020-12-10 14:59:52 +01:00
|
|
|
django22: django>=2.2,<2.3
|
2019-04-01 13:08:38 +02:00
|
|
|
psycopg2-binary
|
2016-03-03 17:16:54 +01:00
|
|
|
pytest-cov
|
2020-03-13 17:53:21 +01:00
|
|
|
pytest-django
|
2020-07-29 14:38:04 +02:00
|
|
|
pytest!=6.0.0
|
2016-03-03 17:16:54 +01:00
|
|
|
WebTest
|
2020-10-06 09:23:22 +02:00
|
|
|
mock<4
|
2016-04-06 18:39:39 +02:00
|
|
|
httmock
|
2016-05-09 17:18:31 +02:00
|
|
|
python-dateutil
|
2021-01-08 09:06:43 +01:00
|
|
|
pylint
|
|
|
|
pylint-django
|
2018-05-03 18:14:58 +02:00
|
|
|
django-webtest<1.9.3
|
2017-05-23 00:40:18 +02:00
|
|
|
lxml
|
2018-05-14 15:03:56 +02:00
|
|
|
mohawk
|
2018-09-17 11:58:19 +02:00
|
|
|
pytest-freezegun
|
2018-11-01 13:18:20 +01:00
|
|
|
pytest-httpbin
|
2019-02-15 10:57:26 +01:00
|
|
|
pytest-localserver
|
2019-03-29 17:01:04 +01:00
|
|
|
pytest-sftpserver
|
2020-08-11 14:06:29 +02:00
|
|
|
Quixote>=3.0,<3.2
|
2019-04-01 13:08:38 +02:00
|
|
|
vobject
|
2019-08-13 21:02:08 +02:00
|
|
|
django-ratelimit
|
2019-08-12 18:17:11 +02:00
|
|
|
pyquery
|
2020-01-20 15:41:49 +01:00
|
|
|
zeep<3.3
|
2021-02-20 16:27:47 +01:00
|
|
|
black: pre-commit
|
2016-03-10 09:41:29 +01:00
|
|
|
commands =
|
2019-04-01 13:08:38 +02:00
|
|
|
./get_wcs.sh
|
2020-01-24 12:20:48 +01:00
|
|
|
py.test {posargs: {env:FAST:} {env:COVERAGE:} {env:JUNIT:} tests/}
|
|
|
|
coverage: ./pylint.sh passerelle/
|
2021-02-20 16:27:47 +01:00
|
|
|
black: pre-commit run black --all-files --show-diff-on-failure
|
2019-11-19 14:01:20 +01:00
|
|
|
|
|
|
|
[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
|