MCPcopy Create free account
hub / github.com/ccxt/ccxt / start_test

Method start_test

python/ccxt/test/tests_sync.py:671–696  ·  view source on GitHub ↗
(self, exchange, symbol_argv)

Source from the content-addressed store, hash-verified

669 return True
670
671 def start_test(self, exchange, symbol_argv):
672 # we do not need to test aliases
673 if exchange.alias:
674 return True
675 self.check_constructor(exchange)
676 # this.testReturnResponseHeaders (exchange);
677 if self.sandbox or get_exchange_prop(exchange, 'sandbox'):
678 exchange.set_sandbox_mode(True)
679 self.test_has_props(exchange)
680 try:
681 result = self.load_exchange(exchange)
682 if not result:
683 if not is_sync():
684 close(exchange)
685 return True
686 # if (exchange.id === 'binance') {
687 # # we test proxies functionality just for one random exchange on each build, because proxy functionality is not exchange-specific, instead it's all done from base methods, so just one working sample would mean it works for all ccxt exchanges
688 # # this.testProxies (exchange);
689 # }
690 self.test_exchange(exchange, symbol_argv)
691 if not is_sync():
692 close(exchange)
693 except Exception as e:
694 if not is_sync():
695 close(exchange)
696 raise e
697
698 def test_has_props(self, exchange):
699 watch_order_book_skips = self.get_skips(exchange, 'watchOrderBook')

Callers 1

init_innerMethod · 0.95

Calls 8

check_constructorMethod · 0.95
test_has_propsMethod · 0.95
load_exchangeMethod · 0.95
test_exchangeMethod · 0.95
get_exchange_propFunction · 0.90
is_syncFunction · 0.90
closeFunction · 0.90
set_sandbox_modeMethod · 0.45

Tested by

no test coverage detected