summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2023-03-23 11:20:51 +0000
committerTakashi Kajinami <tkajinam@redhat.com>2023-03-25 03:01:09 +0000
commit586e5b0a75167b20882728f642c8a81195afb71d (patch)
tree4d9d93d469617f768b30506cfb75b73400991546 /tox.ini
parent998d8df4202e0edb2c791331232fadd7173559ee (diff)
downloadheat-586e5b0a75167b20882728f642c8a81195afb71d.tar.gz
tests: Enable SQLAlchemy 2.0 deprecation warnings
Well, sort of. We enable them but immediately filter out the ones we're actually seeing, the rationale being that we can address these in a piecemeal fashion without the risk of introducing new issues. There's a lot more to be done here. However, the work done in oslo.db [1], nova [2], cinder [2] etc. should provide a guide for how to resolve the outstanding issues. [1] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/oslo.db [2] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/nova [3] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/cinder Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I5877aa495486ba28519b51d800c0474fd72859a5
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 5 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 4998edd17..1e1b7c174 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,9 +5,11 @@ minversion = 3.18.0
[testenv]
basepython = python3
-setenv = VIRTUAL_ENV={envdir}
- PYTHONWARNINGS=default::DeprecationWarning
- OS_TEST_PATH=heat/tests
+setenv =
+ OS_TEST_PATH=heat/tests
+ PYTHONDONTWRITEBYTECODE=1
+# TODO(stephenfin): Remove once we bump our upper-constraint to SQLAlchemy 2.0
+ SQLALCHEMY_WARN_20=1
usedevelop = True
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt