make better use of pattern matching features

error test updated
This commit is contained in:
2023-08-10 16:24:30 +01:00
parent 8c220eb491
commit 65fb8990c9
2 changed files with 6 additions and 10 deletions

View File

@@ -43,5 +43,5 @@ class TestErrors:
"unknown-0": {"state": True},
"vban-out-1": {"name": "streamname"},
}
with pytest.raises(ValueError, match="invalid config key 'unknown'"):
with pytest.raises(ValueError, match="invalid config key 'unknown-0'"):
vm.apply(CONFIG)