Skip to content

Commit

Permalink
test_async.py edits
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Oct 4, 2018
1 parent ef63efb commit 97074a9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions python/test/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,17 +403,19 @@ async def main():

if argv.exchange:

exchange = exchanges[argv.exchange]
symbol = argv.symbol
if argv.exchange != 'theocean':

if hasattr(exchange, 'skip') and exchange.skip:
dump(green(exchange.id), 'skipped')
else:
if symbol:
await load_exchange(exchange)
await test_symbol(exchange, symbol)
exchange = exchanges[argv.exchange]
symbol = argv.symbol

if hasattr(exchange, 'skip') and exchange.skip:
dump(green(exchange.id), 'skipped')
else:
await try_all_proxies(exchange, proxies)
if symbol:
await load_exchange(exchange)
await test_symbol(exchange, symbol)
else:
await try_all_proxies(exchange, proxies)

else:
for exchange in sorted(exchanges.values(), key=lambda x: x.id):
Expand Down

0 comments on commit 97074a9

Please sign in to comment.