Move test comment out of the test data

This commit is contained in:
Matthias
2024-05-12 09:28:10 +02:00
parent e4881580fd
commit f52c3677ca
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -5385,9 +5385,9 @@ def test_position_adjust2(mocker, default_conf_usdt, fee) -> None:
@pytest.mark.parametrize('data', [ @pytest.mark.parametrize('data', [
# tuple 1 - side amount, price
# tuple 2 - amount, open_rate, stake_amount, cumulative_profit, realized_profit, rel_profit
( (
# tuple 1 - side amount, price
# tuple 2 - amount, open_rate, stake_amount, cumulative_profit, realized_profit, rel_profit
(('buy', 100, 10), (100.0, 10.0, 1000.0, 0.0, None, None)), (('buy', 100, 10), (100.0, 10.0, 1000.0, 0.0, None, None)),
(('buy', 100, 15), (200.0, 12.5, 2500.0, 0.0, None, None)), (('buy', 100, 15), (200.0, 12.5, 2500.0, 0.0, None, None)),
(('sell', 50, 12), (150.0, 12.5, 1875.0, -28.0625, -28.0625, -0.011197)), (('sell', 50, 12), (150.0, 12.5, 1875.0, -28.0625, -28.0625, -0.011197)),
+2 -2
View File
@@ -2673,9 +2673,9 @@ def test_order_to_ccxt(limit_buy_order_open, limit_sell_order_usdt_open):
@pytest.mark.usefixtures("init_persistence") @pytest.mark.usefixtures("init_persistence")
@pytest.mark.parametrize('data', [ @pytest.mark.parametrize('data', [
# tuple 1 - side, amount, price
# tuple 2 - amount, open_rate, stake_amount, cumulative_profit, realized_profit, rel_profit
{ {
# tuple 1 - side, amount, price
# tuple 2 - amount, open_rate, stake_amount, cumulative_profit, realized_profit, rel_profit
'orders': [ 'orders': [
(('buy', 100, 10), (100.0, 10.0, 1000.0, 0.0, None, None)), (('buy', 100, 10), (100.0, 10.0, 1000.0, 0.0, None, None)),
(('buy', 100, 15), (200.0, 12.5, 2500.0, 0.0, None, None)), (('buy', 100, 15), (200.0, 12.5, 2500.0, 0.0, None, None)),
+4 -4
View File
@@ -455,8 +455,8 @@ def test_MaxDrawdown(mocker, default_conf, fee, caplog):
None None
), ),
({"method": "MaxDrawdown", "lookback_period": 60, "stop_duration": 60}, ({"method": "MaxDrawdown", "lookback_period": 60, "stop_duration": 60},
"[{'MaxDrawdown': 'MaxDrawdown - Max drawdown protection, stop trading if drawdown is > 0.0 " "[{'MaxDrawdown': 'MaxDrawdown - Max drawdown protection, stop trading "
"within 60 minutes.'}]", "if drawdown is > 0.0 within 60 minutes.'}]",
None None
), ),
({"method": "StoplossGuard", "lookback_period_candles": 12, "trade_limit": 2, ({"method": "StoplossGuard", "lookback_period_candles": 12, "trade_limit": 2,
@@ -475,8 +475,8 @@ def test_MaxDrawdown(mocker, default_conf, fee, caplog):
None None
), ),
({"method": "MaxDrawdown", "lookback_period_candles": 20, "stop_duration": 60}, ({"method": "MaxDrawdown", "lookback_period_candles": 20, "stop_duration": 60},
"[{'MaxDrawdown': 'MaxDrawdown - Max drawdown protection, stop trading if drawdown is > 0.0 " "[{'MaxDrawdown': 'MaxDrawdown - Max drawdown protection, stop trading "
"within 20 candles.'}]", "if drawdown is > 0.0 within 20 candles.'}]",
None None
), ),
]) ])