Merge pull request #2090 from freqtrade/fix/plotting_DB

load_trades_db should give as many columns as possible
This commit is contained in:
Matthias
2019-08-04 12:52:39 +02:00
committed by GitHub
2 changed files with 23 additions and 7 deletions

View File

@@ -45,6 +45,11 @@ def test_load_trades_db(default_conf, fee, mocker):
assert isinstance(trades, DataFrame)
assert "pair" in trades.columns
assert "open_time" in trades.columns
assert "profitperc" in trades.columns
for col in BT_DATA_COLUMNS:
if col not in ['index', 'open_at_end']:
assert col in trades.columns
def test_extract_trades_of_period():