2022-07-16 21:20:56 +01:00
|
|
|
import pytest
|
|
|
|
|
2023-06-23 04:13:34 +01:00
|
|
|
from tests import data, vm
|
2022-07-16 21:20:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
class TestRemoteFactories:
|
|
|
|
__test__ = True
|
|
|
|
|
|
|
|
@pytest.mark.skipif(
|
|
|
|
data.name != "basic",
|
|
|
|
reason="Skip test if kind is not basic",
|
|
|
|
)
|
2023-08-07 15:39:22 +01:00
|
|
|
def test_it_tests_vm_remote_attrs_for_basic(self):
|
2023-06-23 04:13:34 +01:00
|
|
|
assert hasattr(vm, "strip")
|
|
|
|
assert hasattr(vm, "bus")
|
|
|
|
assert hasattr(vm, "command")
|
|
|
|
assert hasattr(vm, "button")
|
|
|
|
assert hasattr(vm, "vban")
|
|
|
|
assert hasattr(vm, "device")
|
|
|
|
assert hasattr(vm, "option")
|
2022-07-16 21:20:56 +01:00
|
|
|
|
2023-06-23 04:13:34 +01:00
|
|
|
assert len(vm.strip) == 3
|
|
|
|
assert len(vm.bus) == 2
|
|
|
|
assert len(vm.button) == 80
|
2023-07-12 09:45:33 +01:00
|
|
|
assert len(vm.vban.instream) == 6 and len(vm.vban.outstream) == 5
|
2022-07-16 21:20:56 +01:00
|
|
|
|
|
|
|
@pytest.mark.skipif(
|
|
|
|
data.name != "banana",
|
2022-07-16 23:21:55 +01:00
|
|
|
reason="Skip test if kind is not banana",
|
2022-07-16 21:20:56 +01:00
|
|
|
)
|
2023-08-07 15:39:22 +01:00
|
|
|
def test_it_tests_vm_remote_attrs_for_banana(self):
|
2023-06-23 04:13:34 +01:00
|
|
|
assert hasattr(vm, "strip")
|
|
|
|
assert hasattr(vm, "bus")
|
|
|
|
assert hasattr(vm, "command")
|
|
|
|
assert hasattr(vm, "button")
|
|
|
|
assert hasattr(vm, "vban")
|
|
|
|
assert hasattr(vm, "device")
|
|
|
|
assert hasattr(vm, "option")
|
|
|
|
assert hasattr(vm, "recorder")
|
|
|
|
assert hasattr(vm, "patch")
|
2022-07-16 21:20:56 +01:00
|
|
|
|
2023-06-23 04:13:34 +01:00
|
|
|
assert len(vm.strip) == 5
|
|
|
|
assert len(vm.bus) == 5
|
|
|
|
assert len(vm.button) == 80
|
2023-07-12 09:45:33 +01:00
|
|
|
assert len(vm.vban.instream) == 10 and len(vm.vban.outstream) == 9
|
2022-07-16 21:20:56 +01:00
|
|
|
|
|
|
|
@pytest.mark.skipif(
|
|
|
|
data.name != "potato",
|
2022-07-16 23:21:55 +01:00
|
|
|
reason="Skip test if kind is not potato",
|
2022-07-16 21:20:56 +01:00
|
|
|
)
|
2023-08-07 15:39:22 +01:00
|
|
|
def test_it_tests_vm_remote_attrs_for_potato(self):
|
2023-06-23 04:13:34 +01:00
|
|
|
assert hasattr(vm, "strip")
|
|
|
|
assert hasattr(vm, "bus")
|
|
|
|
assert hasattr(vm, "command")
|
|
|
|
assert hasattr(vm, "button")
|
|
|
|
assert hasattr(vm, "vban")
|
|
|
|
assert hasattr(vm, "device")
|
|
|
|
assert hasattr(vm, "option")
|
|
|
|
assert hasattr(vm, "recorder")
|
|
|
|
assert hasattr(vm, "patch")
|
|
|
|
assert hasattr(vm, "fx")
|
2022-07-16 21:20:56 +01:00
|
|
|
|
2023-06-23 04:13:34 +01:00
|
|
|
assert len(vm.strip) == 8
|
|
|
|
assert len(vm.bus) == 8
|
|
|
|
assert len(vm.button) == 80
|
2023-07-12 09:45:33 +01:00
|
|
|
assert len(vm.vban.instream) == 10 and len(vm.vban.outstream) == 9
|