Extend create_mock_trades to create 4 trades

2 closed, and 2 open trades
This commit is contained in:
Matthias
2020-07-23 07:49:44 +02:00
parent 0f18b2a0d4
commit 8300eb59d4
5 changed files with 20 additions and 6 deletions

View File

@@ -1089,7 +1089,7 @@ def test_show_trades(mocker, fee, capsys, caplog):
pargs = get_args(args)
pargs['config'] = None
start_show_trades(pargs)
assert log_has("Printing 3 Trades: ", caplog)
assert log_has("Printing 4 Trades: ", caplog)
captured = capsys.readouterr()
assert "Trade(id=1" in captured.out
assert "Trade(id=2" in captured.out