mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-01-24 17:27:48 +00:00
upd tests
This commit is contained in:
parent
96e9d6f4fd
commit
fbd1d54f9b
@ -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)
|
||||||
|
|||||||
@ -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',
|
||||||
[
|
[
|
||||||
|
|||||||
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user