run through formatter

This commit is contained in:
2026-03-07 21:23:37 +00:00
parent 00ac5b1428
commit 9903ecca72
6 changed files with 250 additions and 238 deletions

View File

@@ -10,37 +10,37 @@ class TestUserConfigs:
@classmethod
def setup_class(cls):
vm.apply_config("example")
vm.apply_config('example')
def test_it_tests_vm_config_string(self):
assert "PhysStrip" in vm.strip[data.phys_in].label
assert "VirtStrip" in vm.strip[data.virt_in].label
assert "PhysBus" in vm.bus[data.phys_out].label
assert "VirtBus" in vm.bus[data.virt_out].label
assert 'PhysStrip' in vm.strip[data.phys_in].label
assert 'VirtStrip' in vm.strip[data.virt_in].label
assert 'PhysBus' in vm.bus[data.phys_out].label
assert 'VirtBus' in vm.bus[data.virt_out].label
def test_it_tests_vm_config_bool(self):
assert vm.strip[0].A1 == True
@pytest.mark.skipif(
data.name != "potato",
reason="Skip test if kind is not potato",
data.name != 'potato',
reason='Skip test if kind is not potato',
)
def test_it_tests_vm_config_bool_strip_eq_on(self):
assert vm.strip[data.phys_in].eq.on == True
@pytest.mark.skipif(
data.name != "banana",
reason="Skip test if kind is not banana",
data.name != 'banana',
reason='Skip test if kind is not banana',
)
def test_it_tests_vm_config_bool_bus_eq_ab(self):
assert vm.bus[data.phys_out].eq.ab == True
@pytest.mark.skipif(
"not config.getoption('--run-slow')",
reason="Only run when --run-slow is given",
reason='Only run when --run-slow is given',
)
def test_it_tests_vm_config_busmode(self):
assert vm.bus[data.phys_out].mode.get() == "composite"
assert vm.bus[data.phys_out].mode.get() == 'composite'
def test_it_tests_vm_config_bass_med_high(self):
assert vm.strip[data.virt_in].bass == -3.2