Uncomment tests with --exchange
This commit is contained in:
parent
8a0d90136c
commit
ca4d0067e4
@ -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"
|
"BLK/BTC, BTT/BTC, ETH/BTC, ETH/USDT, LTC/USD, LTC/USDT, TKN/BTC, XLTCUSDT.\n"
|
||||||
in captured.out)
|
in captured.out)
|
||||||
|
|
||||||
# # Test with --exchange
|
# Test with --exchange
|
||||||
# args = [
|
args = [
|
||||||
# "list-markets",
|
"list-markets",
|
||||||
# "--exchange", "binance"
|
"--exchange", "binance"
|
||||||
# ]
|
]
|
||||||
# start_list_markets(get_args(args), False)
|
pargs = get_args(args)
|
||||||
# captured = capsys.readouterr()
|
pargs['config'] = None
|
||||||
# assert re.match("Exchange Binance has 8 active markets:\n",
|
start_list_markets(pargs, False)
|
||||||
# captured.out)
|
captured = capsys.readouterr()
|
||||||
|
assert re.match("Exchange Binance has 8 active markets:\n",
|
||||||
|
captured.out)
|
||||||
|
|
||||||
# Test with --all: all markets
|
# Test with --all: all markets
|
||||||
args = [
|
args = [
|
||||||
|
Loading…
Reference in New Issue
Block a user