Skip to content
Snippets Groups Projects
Commit 6708e2b9 authored by florian's avatar florian
Browse files

STY: autopep8'd

parent 5b4b261f
No related branches found
No related tags found
2 merge requests!91Release 0.3,!76TST: more tests for macros and support for variable substitutions in macro definitions
Pipeline #32013 passed
......@@ -250,6 +250,7 @@ testnode:
assert dat["testnode"]["obl"]["replaced1"]["d"][0] == "a"
assert dat["testnode"]["obl"]["replaced1"]["d"][1] == "25"
def test_circular_macro_definition(register_macros, macro_store_reset):
"""Test the (ab-)use of macros to create an infinite loop."""
cfood = _temp_file_load("""
......@@ -456,6 +457,7 @@ extroot: !macro
assert cfood["extroot"]["default_name"]["v"] == "default_name"
assert cfood["extroot"]["default_name"]["macro_name"] == "default_name"
def test_list_macro_application(register_macros, macro_store_reset):
dat = yaml.load("""
defs:
......@@ -511,4 +513,3 @@ testnode:
assert dat["testnode"]["obl"]["expanded_4"]["param_b"] == "4"
assert dat["testnode"]["obl"]["expanded_2"]["param"] == "2"
assert dat["testnode"]["obl"]["expanded_2"]["param_b"] == "4"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment