diff --git a/tests/freqtradebot/test_freqtradebot.py b/tests/freqtradebot/test_freqtradebot.py index 993091068..14dccf643 100644 --- a/tests/freqtradebot/test_freqtradebot.py +++ b/tests/freqtradebot/test_freqtradebot.py @@ -5385,9 +5385,9 @@ def test_position_adjust2(mocker, default_conf_usdt, fee) -> None: @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, 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)), diff --git a/tests/persistence/test_persistence.py b/tests/persistence/test_persistence.py index a9c27a9b5..67f0f8769 100644 --- a/tests/persistence/test_persistence.py +++ b/tests/persistence/test_persistence.py @@ -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.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': [ (('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)), diff --git a/tests/plugins/test_protections.py b/tests/plugins/test_protections.py index 0228910f2..53963b58e 100644 --- a/tests/plugins/test_protections.py +++ b/tests/plugins/test_protections.py @@ -455,8 +455,8 @@ def test_MaxDrawdown(mocker, default_conf, fee, caplog): None ), ({"method": "MaxDrawdown", "lookback_period": 60, "stop_duration": 60}, - "[{'MaxDrawdown': 'MaxDrawdown - Max drawdown protection, stop trading if drawdown is > 0.0 " - "within 60 minutes.'}]", + "[{'MaxDrawdown': 'MaxDrawdown - Max drawdown protection, stop trading " + "if drawdown is > 0.0 within 60 minutes.'}]", None ), ({"method": "StoplossGuard", "lookback_period_candles": 12, "trade_limit": 2, @@ -475,8 +475,8 @@ def test_MaxDrawdown(mocker, default_conf, fee, caplog): None ), ({"method": "MaxDrawdown", "lookback_period_candles": 20, "stop_duration": 60}, - "[{'MaxDrawdown': 'MaxDrawdown - Max drawdown protection, stop trading if drawdown is > 0.0 " - "within 20 candles.'}]", + "[{'MaxDrawdown': 'MaxDrawdown - Max drawdown protection, stop trading " + "if drawdown is > 0.0 within 20 candles.'}]", None ), ])