From 2257ce0e4ca632e5a35c537fff5a7220d649b006 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sun, 20 Mar 2022 12:46:05 +0000 Subject: [PATCH] Update __init__.py add login,logout to tests init --- tests/__init__.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 231b8a0..f9474a9 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -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()