Skip to content

Commit d8ce50c

Browse files
release 2.6.0 (unittests)
1 parent 34fec95 commit d8ce50c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

unittest_binance_websocket_api.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,9 @@ def test_lucitlicmgr(self):
530530
ubwam.llm.test()
531531
ubwam.llm.process_licensing_error()
532532
ubwam.llm.stop()
533-
llm = LucitLicensingManager(api_secret="wrong", license_token="credentials")
533+
llm = LucitLicensingManager(api_secret="wrong", license_token="credentials",
534+
parent_shutdown_function=ubwam.stop_manager)
534535
time.sleep(3)
535-
ubwam.stop_manager()
536536
llm.stop()
537537

538538
def test_live_api_ws(self):
@@ -597,7 +597,6 @@ def test_z_rest_binance_com_isolated_margin_testnet(self):
597597
ubwa.stop_manager()
598598

599599
def test_z_invalid_exchange(self):
600-
from unicorn_binance_websocket_api.exceptions import UnknownExchange
601600
with self.assertRaises(UnknownExchange):
602601
ubwa_error = BinanceWebSocketApiManager(exchange="invalid-exchange.com")
603602
ubwa_error.stop_manager()
@@ -644,10 +643,8 @@ async def process_asyncio_queue(stream_id=None):
644643
self.__class__.ubwa.stop_stream(stream_id=stream_id_1)
645644

646645
def test_exceptions(self):
647-
try:
646+
with self.assertRaises(StreamIsStopping):
648647
raise StreamIsStopping(stream_id="blah", reason="test")
649-
except StreamIsStopping as e:
650-
print(str(e))
651648

652649
def test_live_run(self):
653650
self.__class__.ubwa.get_active_stream_list()

0 commit comments

Comments
 (0)