stip.{comp,gate} tests added to higher

This commit is contained in:
2023-06-25 14:23:39 +01:00
parent 3f5dc7c376
commit df7996a846
5 changed files with 62 additions and 66 deletions

View File

@@ -1,8 +1,6 @@
import time
import pytest
from tests import data, tests
from tests import data, vban
class TestSetAndGetBoolHigher:
@@ -12,18 +10,18 @@ class TestSetAndGetBoolHigher:
@classmethod
def setup_class(cls):
tests.apply_config("example")
vban.apply_config("example")
def test_it_tests_config_string(self):
assert "PhysStrip" in tests.strip[data.phys_in].label
assert "VirtStrip" in tests.strip[data.virt_in].label
assert "PhysStrip" in vban.strip[data.phys_in].label
assert "VirtStrip" in vban.strip[data.virt_in].label
def test_it_tests_config_bool(self):
assert tests.strip[0].A1 == True
assert vban.strip[0].A1 == True
@pytest.mark.skipif(
"not config.getoption('--run-slow')",
reason="Only run when --run-slow is given",
)
def test_it_tests_config_busmode(self):
assert tests.bus[data.phys_out].mode.get() == "composite"
assert vban.bus[data.phys_out].mode.get() == "composite"