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

@@ -43,7 +43,7 @@ def test_load_trades_from_db(default_conf, fee, mocker):
trades = load_trades_from_db(db_url=default_conf['db_url'])
assert init_mock.call_count == 1
assert len(trades) == 3
assert len(trades) == 4
assert isinstance(trades, DataFrame)
assert "pair" in trades.columns
assert "open_time" in trades.columns