From b9d45948f3bc6f2d55cf9032a91ad0f46246c70f Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Fri, 18 Mar 2022 07:40:43 +0000 Subject: [PATCH] bus mode tests added bus mode tests added to higher tests --- tests/__init__.py | 1 - tests/tests_higher.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index f408138..231b8a0 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -10,7 +10,6 @@ opts = { 'streamname': 'testing', 'port': 6990, 'bps': 0, - 'channel': 3 } vbanrs = {kind.id: vbancmd.connect(_kind, **opts) for kind in kinds.all} diff --git a/tests/tests_higher.py b/tests/tests_higher.py index 3085638..6d325f4 100644 --- a/tests/tests_higher.py +++ b/tests/tests_higher.py @@ -29,6 +29,17 @@ class TestSetAndGetBoolHigher(unittest.TestCase): self.assertTrue(isinstance(retval, bool)) 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 @parameterized_class([