From 9906da46f63d2031c6523bc571ef3ce71824e18d Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 6 Jul 2018 20:00:39 +0200 Subject: [PATCH] move comment to correct place --- freqtrade/tests/optimize/test_backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/tests/optimize/test_backtesting.py b/freqtrade/tests/optimize/test_backtesting.py index 4af9c444e..7b71c0da6 100644 --- a/freqtrade/tests/optimize/test_backtesting.py +++ b/freqtrade/tests/optimize/test_backtesting.py @@ -516,9 +516,9 @@ def test_backtest(default_conf, fee, mocker) -> None: 'close_rate': [0.104999, 0.10396]}) pd.testing.assert_frame_equal(results, expected) data_pair = data_processed[pair] - # Check open trade for _, t in results.iterrows(): ln = data_pair.loc[data_pair["date"] == t["open_time"]] + # Check open trade assert ln is not None assert round(ln.iloc[0]["close"], 6) == round(t["open_rate"], 6) # check close trade