(self, exchange, symbols)
| 350 | return True |
| 351 | |
| 352 | def run_public_tests(self, exchange, symbols): |
| 353 | primary_symbol = symbols[0] |
| 354 | tests = { |
| 355 | 'features': [], |
| 356 | 'afterConstruct': [], |
| 357 | 'fetchCurrencies': [], |
| 358 | 'fetchTicker': [primary_symbol], |
| 359 | 'fetchTickers': [primary_symbol], |
| 360 | 'fetchLastPrices': [primary_symbol], |
| 361 | 'fetchOHLCV': [primary_symbol], |
| 362 | 'fetchTrades': [primary_symbol], |
| 363 | 'fetchOrderBook': [primary_symbol], |
| 364 | 'fetchOrderBooks': [], |
| 365 | 'fetchBidsAsks': [], |
| 366 | 'fetchStatus': [], |
| 367 | 'fetchTime': [], |
| 368 | } |
| 369 | if self.ws_tests: |
| 370 | tests = { |
| 371 | 'watchOHLCV': [primary_symbol], |
| 372 | 'watchOHLCVForSymbols': [primary_symbol], |
| 373 | 'watchTicker': [primary_symbol], |
| 374 | 'watchTickers': [primary_symbol], |
| 375 | 'watchBidsAsks': [primary_symbol], |
| 376 | 'watchOrderBook': [primary_symbol], |
| 377 | 'watchOrderBookForSymbols': [symbols], |
| 378 | 'watchTrades': [primary_symbol], |
| 379 | 'watchTradesForSymbols': [symbols], |
| 380 | } |
| 381 | market = exchange.market(primary_symbol) |
| 382 | is_spot = market['spot'] |
| 383 | if not self.ws_tests: |
| 384 | if is_spot: |
| 385 | tests['fetchCurrencies'] = [] |
| 386 | else: |
| 387 | tests['fetchFundingRates'] = [primary_symbol] |
| 388 | tests['fetchFundingRate'] = [primary_symbol] |
| 389 | tests['fetchFundingRateHistory'] = [primary_symbol] |
| 390 | tests['fetchIndexOHLCV'] = [primary_symbol] |
| 391 | tests['fetchMarkOHLCV'] = [primary_symbol] |
| 392 | tests['fetchPremiumIndexOHLCV'] = [primary_symbol] |
| 393 | self.public_tests = tests |
| 394 | self.run_tests(exchange, tests, True) |
| 395 | return True |
| 396 | |
| 397 | def run_tests(self, exchange, tests, is_public_test): |
| 398 | test_names = list(tests.keys()) |
no test coverage detected