Skip to content

Commit

Permalink
Add a few more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mathialo committed Oct 19, 2023
1 parent 715dceb commit 0c43b9f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/tests_unit/test_configtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 0c43b9f

Please sign in to comment.