示例#1
0
 def test_updates_yaml_alias_recursive_dicts(self, basic_yaml):
     sys_dict = SystemDict(copy.deepcopy(basic_yaml))
     basic_yaml["properties"] = {"temperature": 42, "humidity": 0.75}
     sys_dict.update(basic_yaml)
     assert sys_dict["!OBS.temperature"] == 42
     assert sys_dict["OBS"]["humidity"] == 0.75
示例#2
0
 def test_updates_normal_recursive_dicts(self):
     sys_dict = SystemDict()
     sys_dict["name"] = {"value": "ELT"}
     sys_dict.update({"name": {"type": "str"}})
     assert sys_dict["name"]["value"] == "ELT"
     assert sys_dict["name"]["type"] == "str"