mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 13:03:31 +00:00
refactor target
add error test for ValueError test badges updated patch bump
This commit is contained in:
@@ -14,7 +14,7 @@ class TestErrors:
|
||||
):
|
||||
vban_cmd.api("unknown_kind")
|
||||
|
||||
def test_it_tests_an_invalid_config(self):
|
||||
def test_it_tests_an_unknown_config_name(self):
|
||||
EXPECTED_MSG = (
|
||||
f"No config with name 'unknown' is loaded into memory",
|
||||
f"Known configs: {list(vban.configs.keys())}",
|
||||
@@ -24,3 +24,13 @@ class TestErrors:
|
||||
|
||||
e = exc_info.value
|
||||
assert e.message == "\n".join(EXPECTED_MSG)
|
||||
|
||||
def test_it_tests_an_invalid_config_key(self):
|
||||
CONFIG = {
|
||||
"strip-0": {"A1": True, "B1": True, "gain": -6.0},
|
||||
"bus-0": {"mute": True, "eq": {"on": True}},
|
||||
"unknown-0": {"state": True},
|
||||
"vban-out-1": {"name": "streamname"},
|
||||
}
|
||||
with pytest.raises(ValueError, match="invalid config key 'unknown'"):
|
||||
vban.apply(CONFIG)
|
||||
|
||||
Reference in New Issue
Block a user