Tests: make sure DB overwrite actually takes

This commit is contained in:
Fabian Dill
2022-12-14 20:01:06 +01:00
committed by Fabian Dill
parent 22fe31a141
commit 94c6562f82
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ if not os.path.exists(configpath): # fall back to config.yaml in home
def get_app():
register()
app = raw_app
if os.path.exists(configpath):
if os.path.exists(configpath) and not app.config["TESTING"]:
import yaml
app.config.from_file(configpath, yaml.safe_load)
logging.info(f"Updated config from {configpath}")