mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 04:53:31 +00:00
edits to tests
add more tests to higher. added opts to tests. removed delay, max_polls from runmany, not required for these tests.
This commit is contained in:
@@ -3,18 +3,26 @@ from vban_cmd import kinds
|
||||
from vban_cmd.channel import Modes
|
||||
import socket
|
||||
from threading import Thread
|
||||
from time import sleep
|
||||
|
||||
_kind = 'banana'
|
||||
_kind = 'potato'
|
||||
opts = {
|
||||
'ip': 'ws.local',
|
||||
'streamname': 'testing',
|
||||
'port': 6980,
|
||||
'bps': 0,
|
||||
}
|
||||
|
||||
vbanrs = {kind.id: vban_cmd.connect(_kind, ip='ws.local') for kind in kinds.all}
|
||||
vbanrs = {kind.id: vban_cmd.connect(_kind, **opts) for kind in kinds.all}
|
||||
tests = vbanrs[_kind]
|
||||
|
||||
def setup_package():
|
||||
tests._rt_packet_socket.bind((socket.gethostbyname(socket.gethostname()), tests._port))
|
||||
tests.worker = Thread(target=tests._send_register_rt, daemon=True)
|
||||
tests.worker.start()
|
||||
|
||||
tests._modes = Modes()
|
||||
|
||||
def teardown_package():
|
||||
pass
|
||||
tests._rt_packet_socket.close()
|
||||
tests._rt_register_socket.close()
|
||||
tests._sendrequest_string_socket.close()
|
||||
|
||||
Reference in New Issue
Block a user