Fix load_yaml default value (#5383)
This commit is contained in:
1 parent
836eed2a15
commit
28e5659eee
2 files changed
+7
-1
No files matched your search
@@ -74,6 +74,12 @@ class TestYaml(unittest.TestCase):
|
||||
doc = yaml.yaml.safe_load(file)
|
||||
assert doc["key"] == "value"
|
||||
|
||||
with patch_yaml_files({'test.yaml': None}):
|
||||
conf = 'key: !include test.yaml'
|
||||
with io.StringIO(conf) as file:
|
||||
doc = yaml.yaml.safe_load(file)
|
||||
assert doc["key"] == {}
|
||||
|
||||
@patch('homeassistant.util.yaml.os.walk')
|
||||
def test_include_dir_list(self, mock_walk):
|
||||
"""Test include dir list yaml."""
|
||||
|
||||
Reference in new issue
Block a user