From 777ee3f2752ad84126fb9e3b02604e395a294bfb Mon Sep 17 00:00:00 2001 From: Victor Garcia Reolid Date: Thu, 8 Jun 2023 10:00:16 +0200 Subject: [PATCH] test only with env variables set in conf.py Signed-off-by: Victor Garcia Reolid --- flexmeasures/utils/config_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexmeasures/utils/config_utils.py b/flexmeasures/utils/config_utils.py index 3ce3e1b43..f6e3e0645 100644 --- a/flexmeasures/utils/config_utils.py +++ b/flexmeasures/utils/config_utils.py @@ -82,7 +82,7 @@ def read_config(app: Flask, custom_path_to_config: str | None): path_to_config_instance = os.path.join(app.instance_path, "flexmeasures.cfg") # Custom config: not when testing (that should run completely on defaults) and documentation - if not app.testing and app.env != "documentation": + if not app.testing: used_path_to_config = read_custom_config( app, custom_path_to_config, path_to_config_home, path_to_config_instance )