From eb8ce5b30419fda8173241520ffed5d85a3407b8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 12 May 2024 09:32:51 +0200 Subject: [PATCH] Split too long strings in test --- tests/plugins/test_pairlist.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/plugins/test_pairlist.py b/tests/plugins/test_pairlist.py index 1a23846b7..4aa08e9a8 100644 --- a/tests/plugins/test_pairlist.py +++ b/tests/plugins/test_pairlist.py @@ -1285,11 +1285,13 @@ def test_spreadfilter_invalid_data(mocker, default_conf, markets, tickers, caplo None ), ({"method": "PriceFilter", "low_price_ratio": 0.001, "min_price": 0.00000010}, - "[{'PriceFilter': 'PriceFilter - Filtering pairs priced below 0.1% or below 0.00000010.'}]", + "[{'PriceFilter': 'PriceFilter - Filtering pairs priced below 0.1% " + "or below 0.00000010.'}]", None ), ({"method": "PriceFilter", "low_price_ratio": 0.001, "max_price": 1.00010000}, - "[{'PriceFilter': 'PriceFilter - Filtering pairs priced below 0.1% or above 1.00010000.'}]", + "[{'PriceFilter': 'PriceFilter - Filtering pairs priced below 0.1% " + "or above 1.00010000.'}]", None ), ({"method": "PriceFilter", "min_price": 0.00002000}, @@ -1322,14 +1324,14 @@ def test_spreadfilter_invalid_data(mocker, default_conf, markets, tickers, caplo ), # OperationalException expected ({"method": "RangeStabilityFilter", "lookback_days": 10, "min_rate_of_change": 0.01}, - "[{'RangeStabilityFilter': 'RangeStabilityFilter - Filtering pairs with rate of change below " - "0.01 over the last days.'}]", + "[{'RangeStabilityFilter': 'RangeStabilityFilter - Filtering pairs with rate " + "of change below 0.01 over the last days.'}]", None ), ({"method": "RangeStabilityFilter", "lookback_days": 10, "min_rate_of_change": 0.01, "max_rate_of_change": 0.99}, - "[{'RangeStabilityFilter': 'RangeStabilityFilter - Filtering pairs with rate of change below " - "0.01 and above 0.99 over the last days.'}]", + "[{'RangeStabilityFilter': 'RangeStabilityFilter - Filtering pairs with rate " + "of change below 0.01 and above 0.99 over the last days.'}]", None ), ({"method": "OffsetFilter", "offset": 5, "number_assets": 10},