From c4784c669576c7ba94985ee443ae46b58deb816a Mon Sep 17 00:00:00 2001 From: Thaweesak Chusri Date: Mon, 26 Sep 2022 11:05:27 +0800 Subject: [PATCH 1/3] :pencil2: fixed typo from StaticPairlist to StaticPairList --- freqtrade/optimize/backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 2a1c44f7f..d853b2c21 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -113,7 +113,7 @@ class Backtesting: self.pairlists = PairListManager(self.exchange, self.config) if 'VolumePairList' in self.pairlists.name_list: raise OperationalException("VolumePairList not allowed for backtesting. " - "Please use StaticPairlist instead.") + "Please use StaticPairList instead.") if 'PerformanceFilter' in self.pairlists.name_list: raise OperationalException("PerformanceFilter not allowed for backtesting.") From 4faa6a0bd70f98c73de6b90b0c61201a8f909174 Mon Sep 17 00:00:00 2001 From: Thaweesak Chusri Date: Mon, 26 Sep 2022 21:51:59 +0800 Subject: [PATCH 2/3] :bug: updated test case from StaticPairlist to StaticPairList --- tests/optimize/test_backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/optimize/test_backtesting.py b/tests/optimize/test_backtesting.py index 368e368c5..326ad5cd0 100644 --- a/tests/optimize/test_backtesting.py +++ b/tests/optimize/test_backtesting.py @@ -434,7 +434,7 @@ def test_backtesting_no_pair_left(default_conf, mocker, caplog, testdatadir) -> default_conf['pairlists'] = [{"method": "VolumePairList", "number_assets": 5}] with pytest.raises(OperationalException, - match=r'VolumePairList not allowed for backtesting\..*StaticPairlist.*'): + match=r'VolumePairList not allowed for backtesting\..*StaticPairList.*'): Backtesting(default_conf) default_conf.update({ From 9f32e02bba48098e5a5fb5c0b24374de92ecd82e Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 26 Sep 2022 17:10:23 +0200 Subject: [PATCH 3/3] Update missing testcase --- tests/optimize/test_backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/optimize/test_backtesting.py b/tests/optimize/test_backtesting.py index 326ad5cd0..a190867df 100644 --- a/tests/optimize/test_backtesting.py +++ b/tests/optimize/test_backtesting.py @@ -467,7 +467,7 @@ def test_backtesting_pairlist_list(default_conf, mocker, caplog, testdatadir, ti default_conf['pairlists'] = [{"method": "VolumePairList", "number_assets": 5}] with pytest.raises(OperationalException, - match=r'VolumePairList not allowed for backtesting\..*StaticPairlist.*'): + match=r'VolumePairList not allowed for backtesting\..*StaticPairList.*'): Backtesting(default_conf) default_conf['pairlists'] = [{"method": "StaticPairList"}, {"method": "PerformanceFilter"}]