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-06-23 04:13:34 +01:00
|
|
|
def test_it_vm_remote_attrs_for_basic(self):
|
|
|
|
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
|
|
|
|
assert len(vm.vban.instream) == 4 and len(vm.vban.outstream) == 4
|
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-06-23 04:13:34 +01:00
|
|
|
def test_it_vm_remote_attrs_for_banana(self):
|
|
|
|
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
|
|
|
|
assert len(vm.vban.instream) == 8 and len(vm.vban.outstream) == 8
|
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-06-23 04:13:34 +01:00
|
|
|
def test_it_vm_remote_attrs_for_potato(self):
|
|
|
|
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
|
|
|
|
assert len(vm.vban.instream) == 8 and len(vm.vban.outstream) == 8
|