make better use of pattern matching features

error test updated
This commit is contained in:
2023-08-10 19:12:52 +01:00
parent a61e09b075
commit a635109308
2 changed files with 8 additions and 11 deletions

View File

@@ -32,5 +32,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'"):
vban.apply(CONFIG)