Fix fluky test

This commit is contained in:
hroff-1902 2019-10-20 22:43:00 +03:00
parent d6b6ded8bd
commit 10ca249293

View File

@ -174,9 +174,11 @@ def test_list_markets(mocker, markets, capsys):
args = [
"list-markets",
]
pargs = get_args(args)
pargs['config'] = None
with pytest.raises(OperationalException,
match=r"This command requires a configured exchange.*"):
start_list_markets(get_args(args), False)
start_list_markets(pargs, False)
# Test with --config config.json.example
args = [