Revised the FlaskLoginTestCase test case to skip testing when Flask-Login 0.6.2 conflicts with Werkzeug 3.

This commit is contained in:
依瑪貓 2023-10-08 22:11:50 +08:00
parent 1f657568bb
commit cc96987a18

View File

@ -101,6 +101,9 @@ class FlaskLoginTestCase(unittest.TestCase):
except ModuleNotFoundError: except ModuleNotFoundError:
self.__has_flask_login = False self.__has_flask_login = False
return return
except ImportError:
self.__has_flask_login = False
return
login_manager: flask_login.LoginManager = flask_login.LoginManager() login_manager: flask_login.LoginManager = flask_login.LoginManager()
login_manager.init_app(self.app) login_manager.init_app(self.app)