Reordered the code in the create_app methods of the AuthenticationTestCase and FlaskLoginTestCase test cases.
This commit is contained in:
parent
ea31bb9579
commit
5ebdea6d0a
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user