test: small adjustment to test

(simplifying future usage)
This commit is contained in:
Matthias
2025-04-10 06:43:12 +02:00
parent 568c579cab
commit 16379bbcc5

View File

@@ -180,27 +180,19 @@ def test_loss_functions_better_profits(default_conf, hyperopt_results, lossfunct
]
pair_results_over = [
{
"key": "ETH/USDT",
"max_drawdown_abs": 25.0,
"profit_total_abs": 200.0,
},
{
"key": "BTC/USDT",
"max_drawdown_abs": 25.0,
"profit_total_abs": 200.0,
},
**p,
"max_drawdown_abs": p["max_drawdown_abs"] * 0.5,
"profit_total_abs": p["profit_total_abs"] * 2,
}
for p in pair_results
]
pair_results_under = [
{
"key": "ETH/USDT",
"max_drawdown_abs": 100.0,
"profit_total_abs": 50.0,
},
{
"key": "BTC/USDT",
"max_drawdown_abs": 100.0,
"profit_total_abs": 50.0,
},
**p,
"max_drawdown_abs": p["max_drawdown_abs"] * 2,
"profit_total_abs": p["profit_total_abs"] * 0.5,
}
for p in pair_results
]
default_conf.update({"hyperopt_loss": lossfunction})