10348 | Update tests and add pairlist constants

This commit is contained in:
jainanuj94
2024-07-24 19:12:11 +05:30
parent 4b1177e07e
commit b09f9e8c12
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -42,6 +42,7 @@ HYPEROPT_LOSS_BUILTIN = [
AVAILABLE_PAIRLISTS = [ AVAILABLE_PAIRLISTS = [
"StaticPairList", "StaticPairList",
"VolumePairList", "VolumePairList",
"PercentVolumeChangePairList",
"ProducerPairList", "ProducerPairList",
"RemotePairList", "RemotePairList",
"MarketCapPairList", "MarketCapPairList",
+5 -3
View File
@@ -31,9 +31,11 @@ from tests.conftest import (
) )
# Exclude RemotePairList from tests. # Exclude RemotePairList and PercentVolumeChangePairList from tests.
# It has a mandatory parameter, and requires special handling, which happens in test_remotepairlist. # They have mandatory parameters, and requires special handling,
TESTABLE_PAIRLISTS = [p for p in AVAILABLE_PAIRLISTS if p not in ["RemotePairList"]] # which happens in test_remotepairlist and test_percentvolumechangepairlist.
TESTABLE_PAIRLISTS = [p for p in AVAILABLE_PAIRLISTS
if p not in ["RemotePairList", "PercentVolumeChangePairList"]]
@pytest.fixture(scope="function") @pytest.fixture(scope="function")