Reordered the code in the create_app methods of the AuthenticationTestCase and FlaskLoginTestCase test cases.

This commit is contained in:
依瑪貓 2023-01-05 22:50:59 +08:00
parent ea31bb9579
commit 5ebdea6d0a
2 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ class AuthenticationTestCase(TestCase):
""" """
app: Flask = Flask(__name__) app: Flask = Flask(__name__)
app.config.from_mapping({ app.config.from_mapping({
"TESTING": True,
"SECRET_KEY": token_urlsafe(32), "SECRET_KEY": token_urlsafe(32),
"TESTING": True
}) })
app.test_client_class = Client app.test_client_class = Client

View File

@ -77,8 +77,8 @@ class FlaskLoginTestCase(TestCase):
""" """
app: Flask = Flask(__name__) app: Flask = Flask(__name__)
app.config.from_mapping({ app.config.from_mapping({
"TESTING": True,
"SECRET_KEY": token_urlsafe(32), "SECRET_KEY": token_urlsafe(32),
"TESTING": True
}) })
app.test_client_class = Client app.test_client_class = Client