mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-16 01:10:48 +00:00
364e456c94
added a couple of lower tests. add some string tests to higher tests. added bus class add higher commands show, hide, shutdown, restart, version and type
21 lines
515 B
Python
21 lines
515 B
Python
import vban_cmd
|
|
from vban_cmd import kinds
|
|
from vban_cmd.channel import Modes
|
|
import socket
|
|
from threading import Thread
|
|
|
|
_kind = 'banana'
|
|
|
|
vbanrs = {kind.id: vban_cmd.connect(_kind, ip='ws.local') 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
|