upd tests

This commit is contained in:
onyx-and-iris 2026-01-17 09:37:50 +00:00
parent 96e9d6f4fd
commit fbd1d54f9b
3 changed files with 6 additions and 5 deletions

View File

@ -11,9 +11,9 @@ from vban_cmd.kinds import request_kind_map as kindmap
KIND_ID = os.environ.get('KIND', 'potato') KIND_ID = os.environ.get('KIND', 'potato')
opts = { opts = {
'ip': 'localhost', 'ip': os.getenv('VBANCMD_IP', 'localhost'),
'streamname': 'onyx', 'streamname': os.getenv('VBANCMD_STREAMNAME', 'Command1'),
'port': 6980, 'port': int(os.getenv('VBANCMD_PORT', 6980)),
} }
vban = vban_cmd.api(KIND_ID, **opts) vban = vban_cmd.api(KIND_ID, **opts)

View File

@ -176,6 +176,7 @@ class TestSetAndGetFloatHigher:
""" strip tests, virtual """ """ strip tests, virtual """
@pytest.mark.skip(reason='Requires RT Packet NBS 1')
@pytest.mark.parametrize( @pytest.mark.parametrize(
'index, param, value', 'index, param, value',
[ [

View File

@ -9,8 +9,8 @@ class TestPublicPacketLower:
"""Tests for a valid rt data packet""" """Tests for a valid rt data packet"""
def test_it_gets_an_rt_data_packet(self): def test_it_gets_an_rt0_data_packet(self):
assert vban.public_packet.voicemeetertype in ( assert vban.public_packets[0].voicemeetertype in (
kind.name for kind in kinds.kinds_all kind.name for kind in kinds.kinds_all
) )