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

Method check_constructor

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

Source from the content-addressed store, hash-verified

645 return True
646
647 def check_constructor(self, exchange):
648 # todo: this might be moved in base tests later
649 if exchange.id == 'binance':
650 assert exchange.hostname is None or exchange.hostname == '', 'binance.com hostname should be empty'
651 assert exchange.urls['api']['public'] == 'https://api.binance.com/api/v3', 'https://api.binance.com/api/v3 does not match: ' + exchange.urls['api']['public']
652 assert ('lending/union/account' in exchange.api['sapi']['get']), 'SAPI should contain the endpoint lending/union/account, ' + json_stringify(exchange.api['sapi']['get'])
653 elif exchange.id == 'binanceus':
654 assert exchange.hostname == 'binance.us', 'binance.us hostname does not match ' + exchange.hostname
655 assert exchange.urls['api']['public'] == 'https://api.binance.us/api/v3', 'https://api.binance.us/api/v3 does not match: ' + exchange.urls['api']['public']
656
657 def test_return_response_headers(self, exchange):
658 if exchange.id != 'binance':

Callers 1

start_testMethod · 0.95

Calls 1

json_stringifyFunction · 0.90

Tested by

no test coverage detected