Skip to content

Commit

Permalink
Uncomment tests with --exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
hroff-1902 committed Oct 20, 2019
1 parent 8a0d901 commit ca4d006
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions tests/test_utils.py
Expand Up @@ -192,15 +192,17 @@ def test_list_markets(mocker, markets, capsys):
"BLK/BTC, BTT/BTC, ETH/BTC, ETH/USDT, LTC/USD, LTC/USDT, TKN/BTC, XLTCUSDT.\n"
in captured.out)

# # Test with --exchange
# args = [
# "list-markets",
# "--exchange", "binance"
# ]
# start_list_markets(get_args(args), False)
# captured = capsys.readouterr()
# assert re.match("Exchange Binance has 8 active markets:\n",
# captured.out)
# Test with --exchange
args = [
"list-markets",
"--exchange", "binance"
]
pargs = get_args(args)
pargs['config'] = None
start_list_markets(pargs, False)
captured = capsys.readouterr()
assert re.match("Exchange Binance has 8 active markets:\n",
captured.out)

# Test with --all: all markets
args = [
Expand Down

0 comments on commit ca4d006

Please sign in to comment.