2022-02-25 15:17:05 +00:00
|
|
|
import vban_cmd
|
|
|
|
from vban_cmd import kinds
|
2022-02-25 17:02:27 +00:00
|
|
|
from vban_cmd.channel import Modes
|
2022-02-25 15:17:05 +00:00
|
|
|
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()
|
|
|
|
|
2022-02-25 17:02:27 +00:00
|
|
|
tests._modes = Modes()
|
|
|
|
|
2022-02-25 15:17:05 +00:00
|
|
|
def teardown_package():
|
|
|
|
pass
|