Enable DeprecationWarning in test environments

Neutron is refactoring a lot of its code. For example, common entities
are being moved to neutron-lib. When code is refactored it is marked
with debtcollector, which issues a deprecation warning. In the next
release the old entity will be removed. Consuming projects (like
tricircle) must update to comply with the new entity before the old
one is removed.

Tricircle maintainers must monitor deprecation warnings and act on them
before the next release.

Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by the WarningsFixture in the
base test class.

To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.

Change-Id: Iade909b35a55cebb7dfe13a688f451ad91989b94
This commit is contained in:
Henry Gessau 2016-08-09 19:59:18 -04:00 committed by Henry Gessau
parent 8f3cd2e672
commit 30f6475665

View File

@ -9,6 +9,7 @@ usedevelop = True
install_command = pip install -U --force-reinstall {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
TRICIRCLE_TEST_DIRECTORY=tricircle/tests
deps =
-r{toxinidir}/test-requirements.txt