This commit is contained in:
Jonas Bengtsson
2026-10-07 17:13:51 +02:00
parent 1c64aeb071
commit 2aa040e757
11 changed files with 749 additions and 29 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ def _write(tmp_path: Path, text: str) -> Path:
def test_example_config_loads() -> None:
config = load_config(EXAMPLE)
assert config.opc.server == "Matrikon.OPC.Simulation.1"
assert config.opc.host == "CONTROL-HOST01"
assert config.opc.host is None # host commented out -> local server
assert len(config.tags) == 2
assert config.tags[0].name == "Channel1.Device1.Counter"
assert config.tags[0].expect_change is True