noop yaml loader refactor
This commit is contained in:
1 parent
0cf3f2706a
commit
97521097dc
17 files changed
+147
-93
No files matched your search
@@ -1,7 +1,8 @@
|
||||
from pathlib import Path
|
||||
|
||||
from src.automations.types import ExtenededAutomation
|
||||
from src.automations.errors import DBDataError
|
||||
from src.automations.types import ExtenededAutomation
|
||||
|
||||
from .utils import TestWithDB
|
||||
|
||||
|
||||
|
||||
@@ -229,7 +229,8 @@ class manager_tests(TestWithDB):
|
||||
automation_manager.get("newlymade")
|
||||
|
||||
data = yaml_serializer.load_yaml(
|
||||
(config_path / "automations/include_dir_merge_list/sub/list2.yaml").open("r")
|
||||
(config_path / "automations/include_dir_merge_list/sub/list2.yaml").open("r"),
|
||||
root_path=config_path,
|
||||
)
|
||||
self.assertIsInstance(data, list)
|
||||
|
||||
@@ -254,7 +255,8 @@ class manager_tests(TestWithDB):
|
||||
automation_manager.get("newlymade")
|
||||
|
||||
data = yaml_serializer.load_yaml(
|
||||
(config_path / "automations/include_dir_list/home/down.yaml").open("r")
|
||||
(config_path / "automations/include_dir_list/home/down.yaml").open("r"),
|
||||
config_path,
|
||||
)
|
||||
self.assertIsInstance(data, dict)
|
||||
|
||||
|
||||
Reference in new issue
Block a user