From f3e3a8fcbe962ac5da0491fcbf970defd3a72fc6 Mon Sep 17 00:00:00 2001 From: Pialat Date: Mon, 16 Sep 2019 14:04:10 +0200 Subject: [PATCH 1/2] unused in tests --- tests/optimize/test_hyperopt.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index f5c8bf0ae..90b7953d0 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -38,8 +38,6 @@ def hyperopt_results(): 'profit_percent': [0.1, 0.2, 0.3], 'profit_abs': [0.2, 0.4, 0.5], 'trade_duration': [10, 30, 10], - 'profit': [2, 0, 0], - 'loss': [0, 0, 1], 'sell_reason': [SellType.ROI, SellType.ROI, SellType.STOP_LOSS] } ) From b7da02aab4adb6908b8abb3747515ed3a43d4ba6 Mon Sep 17 00:00:00 2001 From: Pialat Date: Mon, 16 Sep 2019 14:05:39 +0200 Subject: [PATCH 2/2] realistic fixture datas --- tests/optimize/test_hyperopt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index 90b7953d0..e2f953485 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -35,10 +35,10 @@ def hyperopt_results(): return pd.DataFrame( { 'pair': ['ETH/BTC', 'ETH/BTC', 'ETH/BTC'], - 'profit_percent': [0.1, 0.2, 0.3], - 'profit_abs': [0.2, 0.4, 0.5], + 'profit_percent': [-0.1, 0.2, 0.3], + 'profit_abs': [-0.2, 0.4, 0.6], 'trade_duration': [10, 30, 10], - 'sell_reason': [SellType.ROI, SellType.ROI, SellType.STOP_LOSS] + 'sell_reason': [SellType.STOP_LOSS, SellType.ROI, SellType.ROI] } )