Fixed the test_logout test of the FlaskLoginTestCase test case to skip without Flask-Login.

This commit is contained in:
依瑪貓 2022-12-03 11:56:40 +08:00
parent 491da61a79
commit 7e71115844

View File

@ -221,6 +221,9 @@ class FlaskLoginTestCase(TestCase):
:return: None. :return: None.
""" """
if not self.has_flask_login:
self.skipTest("Skipped without Flask-Login.")
admin_uri: str = self.app.url_for("admin-1") admin_uri: str = self.app.url_for("admin-1")
logout_uri: str = self.app.url_for("logout") logout_uri: str = self.app.url_for("logout")
response: Response response: Response