[tox] toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:} envlist = py2-django111-pg-junit, py3-django111-pg-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 fast: FAST=--nomigrations sqlite: DB_ENGINE=django.db.backends.sqlite3 pg: DB_ENGINE=django.db.backends.postgresql_psycopg2 coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc -Wignore junit: JUNIT=--junitxml=junit-{envname}.xml deps = django111: django>=1.11,<1.12 psycopg2-binary pytest-cov pytest-django<3.4.6 pytest WebTest mock httmock python-dateutil pylint<1.8 pylint-django<0.8.1 django-webtest<1.9.3 lxml mohawk py2: enum34<=1.1.6 pytest-freezegun pytest-httpbin pytest-localserver pytest-sftpserver py2: http://quixote.python.ca/releases/Quixote-2.7b2.tar.gz py3: Quixote vobject django-ratelimit pyquery xmlschema<1.1 zeep<3.3 commands = ./get_wcs.sh py.test {posargs: {env:FAST:} {env:COVERAGE:} {env:JUNIT:} tests/} coverage: ./pylint.sh passerelle/ [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