Skip to content

Commit

Permalink
test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardsp authored and yosoyjay committed Sep 14, 2022
1 parent 9bb5025 commit 19996b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyazhpc/test/test_azconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ def test_read_variable(self):
def test_replace_double_curly_braces(self):
self.assertEqual(self.config.read_value("double_curly_braces"), "simple_variable=42")

def test_replace_in_dict_key(self):
self.assertEqual(self.config.read_value("resources.foo"), "bar")

if __name__ == "__main__":
unittest.main()
6 changes: 5 additions & 1 deletion pyazhpc/test/test_config_file.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"use_variable": "variables.simple_variable",
"double_curly_braces": "simple_variable={{variables.simple_variable}}",
"variables": {
"simple_variable": 42
"simple_variable": 42,
"resource_name": "foo"
},
"resources": {
"variables.resource_name": "bar"
}
}

0 comments on commit 19996b3

Please sign in to comment.