bus mode tests added

bus mode tests added to higher tests
This commit is contained in:
onyx-and-iris 2022-03-18 07:40:43 +00:00
parent 84cc4d097d
commit b9d45948f3
2 changed files with 11 additions and 1 deletions

View File

@ -10,7 +10,6 @@ opts = {
'streamname': 'testing', 'streamname': 'testing',
'port': 6990, 'port': 6990,
'bps': 0, 'bps': 0,
'channel': 3
} }
vbanrs = {kind.id: vbancmd.connect(_kind, **opts) for kind in kinds.all} vbanrs = {kind.id: vbancmd.connect(_kind, **opts) for kind in kinds.all}

View File

@ -29,6 +29,17 @@ class TestSetAndGetBoolHigher(unittest.TestCase):
self.assertTrue(isinstance(retval, bool)) self.assertTrue(isinstance(retval, bool))
assert_equal(retval, self.val) assert_equal(retval, self.val)
""" bus mode tests, physical and virtual """
@parameterized.expand([
(0, 'amix'), (0, 'tvmix'), (2, 'composite'), (2, 'upmix41'),
(7, 'upmix21'), (7, 'rearonly'), (6, 'lfeonly'), (6, 'repeat')
])
def test_it_sets_and_gets_bus_mode_bool_params(self, index, param):
setattr(tests.bus[index].mode, param, self.val)
retval = getattr(tests.bus[index].mode, param)
self.assertTrue(isinstance(retval, bool))
assert_equal(retval, self.val)
#@nottest #@nottest
@parameterized_class([ @parameterized_class([