MCPcopy Index your code
hub / github.com/ccxt/ccxt / start_test

Method start_test

python/ccxt/test/tests_async.py:674–699  ·  view source on GitHub ↗
(self, exchange, symbol_argv)

Source from the content-addressed store, hash-verified

672 return True
673
674 async def start_test(self, exchange, symbol_argv):
675 # we do not need to test aliases
676 if exchange.alias:
677 return True
678 self.check_constructor(exchange)
679 # await this.testReturnResponseHeaders (exchange);
680 if self.sandbox or get_exchange_prop(exchange, 'sandbox'):
681 exchange.set_sandbox_mode(True)
682 self.test_has_props(exchange)
683 try:
684 result = await self.load_exchange(exchange)
685 if not result:
686 if not is_sync():
687 await close(exchange)
688 return True
689 # if (exchange.id === 'binance') {
690 # # 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
691 # # await this.testProxies (exchange);
692 # }
693 await self.test_exchange(exchange, symbol_argv)
694 if not is_sync():
695 await close(exchange)
696 except Exception as e:
697 if not is_sync():
698 await close(exchange)
699 raise e
700
701 def test_has_props(self, exchange):
702 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