File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -530,9 +530,9 @@ def test_lucitlicmgr(self):
530
530
ubwam .llm .test ()
531
531
ubwam .llm .process_licensing_error ()
532
532
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 )
534
535
time .sleep (3 )
535
- ubwam .stop_manager ()
536
536
llm .stop ()
537
537
538
538
def test_live_api_ws (self ):
@@ -597,7 +597,6 @@ def test_z_rest_binance_com_isolated_margin_testnet(self):
597
597
ubwa .stop_manager ()
598
598
599
599
def test_z_invalid_exchange (self ):
600
- from unicorn_binance_websocket_api .exceptions import UnknownExchange
601
600
with self .assertRaises (UnknownExchange ):
602
601
ubwa_error = BinanceWebSocketApiManager (exchange = "invalid-exchange.com" )
603
602
ubwa_error .stop_manager ()
@@ -644,10 +643,8 @@ async def process_asyncio_queue(stream_id=None):
644
643
self .__class__ .ubwa .stop_stream (stream_id = stream_id_1 )
645
644
646
645
def test_exceptions (self ):
647
- try :
646
+ with self . assertRaises ( StreamIsStopping ) :
648
647
raise StreamIsStopping (stream_id = "blah" , reason = "test" )
649
- except StreamIsStopping as e :
650
- print (str (e ))
651
648
652
649
def test_live_run (self ):
653
650
self .__class__ .ubwa .get_active_stream_list ()
You can’t perform that action at this time.
0 commit comments