mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2025-01-18 10:30:48 +00:00
Update __init__.py
add login,logout to tests init
This commit is contained in:
parent
80048d62bd
commit
2257ce0e4c
@ -16,13 +16,7 @@ vbanrs = {kind.id: vbancmd.connect(_kind, **opts) for kind in kinds.all}
|
||||
tests = vbanrs[_kind]
|
||||
|
||||
def setup_package():
|
||||
tests._modes = Modes()
|
||||
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._public_packet = tests._get_rt()
|
||||
tests.worker2 = Thread(target=tests._keepupdated, daemon=True)
|
||||
tests.worker2.start()
|
||||
tests.login()
|
||||
|
||||
def teardown_package():
|
||||
tests.close()
|
||||
tests.logout()
|
||||
|
Loading…
Reference in New Issue
Block a user