From 2747783dd6c56b1a7ca513da51563300c2846108 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 19 Nov 2019 14:01:20 +0100 Subject: [PATCH 6/6] tox: hide currently unfixable warnings (#37760) --- tox.ini | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tox.ini b/tox.ini index a5455400..44adc9f8 100644 --- a/tox.ini +++ b/tox.ini @@ -40,3 +40,18 @@ commands = ./get_wcs.sh django111: py.test {posargs: {env:FAST:} --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc tests/} django111: ./pylint.sh passerelle/ + +[pytest] +filterwarnings = default + error:.* +# to delete when migration to new style MIDDLEWARE is done + ignore:Old-style:django.utils.deprecation.RemovedInDjango20Warning:django +# to delete when using python3, it's a warning inside ElementTree + ignore:.*tree.iter().*:PendingDeprecationWarning +# to delete when migrating the login view to CBV + ignore:.*class-based.*LoginView():django.utils.deprecation.RemovedInDjango21Warning +# 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 + ignore:.*init.*authority.*code.*syntax is deprecated:DeprecationWarning:pyproj +# wcs root directory must be renamed to fix this one + ignore:Not importing directory.*/wcs':ImportWarning -- 2.23.0