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

Method test_has_props

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

Source from the content-addressed store, hash-verified

696 raise e
697
698 def test_has_props(self, exchange):
699 watch_order_book_skips = self.get_skips(exchange, 'watchOrderBook')
700 fetch_order_book_skips = self.get_skips(exchange, 'fetchOrderBook')
701 if self.ws_tests and not exchange.safe_bool(exchange.has, 'watchOrderBook', False) and not isinstance(watch_order_book_skips, str):
702 dump('[TEST_FAILURE] Method "watchOrderBook" is not set in "has", please check the "has" property of exchange')
703 exit_script(1)
704 elif not self.ws_tests and not exchange.safe_bool(exchange.has, 'fetchOrderBook', False) and not isinstance(fetch_order_book_skips, str):
705 dump('[TEST_FAILURE] Method "fetchOrderBook" is not set in "has", please check the "has" property of exchange')
706 exit_script(1)
707
708 def assert_static_error(self, cond, message, calculated_output, stored_output, key=None):
709 # -----------------------------------------------------------------------------

Callers 1

start_testMethod · 0.95

Calls 4

get_skipsMethod · 0.95
dumpFunction · 0.90
exit_scriptFunction · 0.90
safe_boolMethod · 0.80

Tested by

no test coverage detected