From de6b478016778044fc6bc1a37489cdecfa25c5da Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Aug 20 2018 01:48:26 +0000 Subject: Fix deprecation import for flask sqlalchemy Import from flask.ext.sqlalchemy has been deprecated. This fix is helpful to supporess the deprecation warning and avoid import error once newer flask_sqlalchemy version 2.3.2 is installed, in which version flask.ext.sqlalchemy is replaced with flask_sqlalchemy. Signed-off-by: Chenxiong Qi --- diff --git a/server/tests/utils.py b/server/tests/utils.py index 5d0ba34..fe72fe6 100644 --- a/server/tests/utils.py +++ b/server/tests/utils.py @@ -28,7 +28,7 @@ from sqlalchemy import event from odcs.server.events import cache_composes_if_state_changed from odcs.server.events import start_to_publish_messages -from flask.ext.sqlalchemy import SignallingSession +from flask_sqlalchemy import SignallingSession from mock import patch