test against localhost

run tests through formatter

remove sel test from bus bool params
This commit is contained in:
2025-01-17 15:01:40 +00:00
parent af68c423a6
commit bc2cd3e7a5
8 changed files with 109 additions and 108 deletions

View File

@@ -15,20 +15,20 @@ class TestPublicPacketLower:
)
@pytest.mark.parametrize("value", [0, 1])
@pytest.mark.parametrize('value', [0, 1])
class TestSetRT:
__test__ = True
"""Tests set_rt"""
@pytest.mark.parametrize(
"kls,index,param",
'kls,index,param',
[
("strip", data.phys_in, "mute"),
("bus", data.virt_out, "mono"),
('strip', data.phys_in, 'mute'),
('bus', data.virt_out, 'mono'),
],
)
def test_it_sends_a_text_request(self, kls, index, param, value):
vban._set_rt(f"{kls}[{index}].{param}", value)
vban._set_rt(f'{kls}[{index}].{param}', value)
target = getattr(vban, kls)[index]
assert getattr(target, param) == bool(value)