From 0c43b9fc0c2305dbc8415667a1cb2b366e744073 Mon Sep 17 00:00:00 2001 From: Mathias Lohne Date: Thu, 19 Oct 2023 10:32:06 +0200 Subject: [PATCH] Add a few more cases --- tests/tests_unit/test_configtools.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/tests_unit/test_configtools.py b/tests/tests_unit/test_configtools.py index ce5c4b84..fdb86a10 100644 --- a/tests/tests_unit/test_configtools.py +++ b/tests/tests_unit/test_configtools.py @@ -402,3 +402,15 @@ def test_env_substitution(self): config3 = load_yaml(config_file3, SimpleStringConfig) self.assertEqual(config3.string_field, "heyo in context") + + config_file4 = "string-field: ${STRING_VALUE}without space" + config4 = load_yaml(config_file4, SimpleStringConfig) + + self.assertEqual(config4.string_field, "heyowithout space") + + config_file5 = "string-field: !env very${STRING_VALUE}crowded" + config5 = load_yaml(config_file5, SimpleStringConfig) + + self.assertEqual(config5.string_field, "veryheyocrowded") + + self.fail()