From 68db07a79fb702ada772947f778ec9ec97315888 Mon Sep 17 00:00:00 2001 From: "Matthew X. Economou" Date: Mon, 9 Sep 2024 08:21:35 -0400 Subject: [PATCH] fix(app): load the specified test config even if the mapping is empty --- src/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.py b/src/app.py index 2b3c081..886f05e 100644 --- a/src/app.py +++ b/src/app.py @@ -41,10 +41,10 @@ def create_app(test_config=None) -> Flask: BOOTSTRAP_SERVE_LOCAL=True, SECRET_KEY="dev", ) - if test_config: - app.config.from_mapping(test_config) - else: + if test_config is None: app.config.from_pyfile("config.py", silent=True) + else: + app.config.from_mapping(test_config) # load extensions bootstrap.init_app(app)