From 8d36c7005fb4518a8602044765789020adcb0174 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Wed, 23 Mar 2016 11:55:04 +0300 Subject: [PATCH] Ignore warning from a known issue in flask-sqlalchemy in tests flask-sqlalchemy tries to get all attributes of mixin class and SQLAlchemy warns that it's not a good thing to do. See https://github.com/mitsuhiko/flask-sqlalchemy/issues/349 for details. Change-Id: I7973fc2793fc74787b26f680cf596363f618900c --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index e72878c..2d6ff27 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,7 @@ usedevelop = True install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} + PYTHONWARNINGS=ignore:Unmanaged access of declarative attribute __tablename__ from non-mapped class ModelMixin OS_TEST_DBAPI_ADMIN_CONNECTION=mysql+pymysql://openstack_citest:openstack_citest@localhost/;postgresql://openstack_citest:openstack_citest@localhost/postgres;sqlite:///testdb deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}'