From 5ebdea6d0a60e805b44cfbb26e0e9bb05aa30900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 5 Jan 2023 22:50:59 +0800 Subject: [PATCH] Reordered the code in the create_app methods of the AuthenticationTestCase and FlaskLoginTestCase test cases. --- tests/test_auth.py | 2 +- tests/test_flask_login.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_auth.py b/tests/test_auth.py index fc99ff1..5c7a4ec 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -57,8 +57,8 @@ class AuthenticationTestCase(TestCase): """ app: Flask = Flask(__name__) app.config.from_mapping({ + "TESTING": True, "SECRET_KEY": token_urlsafe(32), - "TESTING": True }) app.test_client_class = Client diff --git a/tests/test_flask_login.py b/tests/test_flask_login.py index 86475c7..b9a1971 100644 --- a/tests/test_flask_login.py +++ b/tests/test_flask_login.py @@ -77,8 +77,8 @@ class FlaskLoginTestCase(TestCase): """ app: Flask = Flask(__name__) app.config.from_mapping({ + "TESTING": True, "SECRET_KEY": token_urlsafe(32), - "TESTING": True }) app.test_client_class = Client