From 162b9a46eaa935811c422c8334dcc803fc968c75 Mon Sep 17 00:00:00 2001 From: Christian Merten Date: Fri, 29 Aug 2025 02:48:09 +0200 Subject: [PATCH] chore(docker/test): add test texts config --- docker/test/config/texts.toml | 12 ++++++++++++ jdav_web/jdav_web/settings/__init__.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 docker/test/config/texts.toml diff --git a/docker/test/config/texts.toml b/docker/test/config/texts.toml new file mode 100644 index 0000000..2e04743 --- /dev/null +++ b/docker/test/config/texts.toml @@ -0,0 +1,12 @@ +confirm_mail = """ +Hiho custom test test {name}, + +du hast bei der JDAV %(SEKTION)s eine E-Mail Adresse hinterlegt. Da bei uns alle Kommunikation +per Email funktioniert, brauchen wir eine Bestätigung {whattoconfirm}. + +Custom! + +{link} + +Test test +Deine JDAV test test %(SEKTION)s""" diff --git a/jdav_web/jdav_web/settings/__init__.py b/jdav_web/jdav_web/settings/__init__.py index 248f7d1..e474d0e 100644 --- a/jdav_web/jdav_web/settings/__init__.py +++ b/jdav_web/jdav_web/settings/__init__.py @@ -25,7 +25,7 @@ if os.path.exists(os.path.join(CONFIG_DIR_PATH, TEXTS_FILE)): with open(os.path.join(CONFIG_DIR_PATH, TEXTS_FILE), 'rb') as f: texts = tomli.load(f) else: - texts = {} + texts = {} # pragma: no cover def get_var(*keys, default='', dictionary=config):