Fix flake8 mypy
This commit is contained in:
parent
a8f523adae
commit
a5bfa5515c
@ -22,7 +22,7 @@ class DataProvider:
|
|||||||
def __init__(self, config: dict, exchange: Exchange, pairlists=None) -> None:
|
def __init__(self, config: dict, exchange: Exchange, pairlists=None) -> None:
|
||||||
self._config = config
|
self._config = config
|
||||||
self._exchange = exchange
|
self._exchange = exchange
|
||||||
self._pairlists: Optional = pairlists
|
self._pairlists = pairlists
|
||||||
|
|
||||||
def refresh(self,
|
def refresh(self,
|
||||||
pairlist: List[Tuple[str, str]],
|
pairlist: List[Tuple[str, str]],
|
||||||
|
@ -164,7 +164,9 @@ def test_current_whitelist(exchange, PairListManager, default_conf):
|
|||||||
|
|
||||||
# Simulate volumepairs from exchange.
|
# Simulate volumepairs from exchange.
|
||||||
# pairlist.refresh_pairlist()
|
# pairlist.refresh_pairlist()
|
||||||
# Set the pairs manually... this would be done in refresh pairlist default whitelist + volumePL - blacklist
|
|
||||||
|
# Set the pairs manually... this would be done in refresh pairlist
|
||||||
|
# default whitelist + volumePL - blacklist
|
||||||
default_whitelist = default_conf['exchange']['pair_whitelist']
|
default_whitelist = default_conf['exchange']['pair_whitelist']
|
||||||
default_blacklist = default_conf['exchange']['pair_blacklist']
|
default_blacklist = default_conf['exchange']['pair_blacklist']
|
||||||
volume_pairlist = ['ETH/BTC', 'LINK/BTC', 'ZRX/BTC', 'BCH/BTC', 'XRP/BTC']
|
volume_pairlist = ['ETH/BTC', 'LINK/BTC', 'ZRX/BTC', 'BCH/BTC', 'XRP/BTC']
|
||||||
@ -176,6 +178,6 @@ def test_current_whitelist(exchange, PairListManager, default_conf):
|
|||||||
|
|
||||||
assert dp.current_whitelist() == pairlist._whitelist
|
assert dp.current_whitelist() == pairlist._whitelist
|
||||||
|
|
||||||
with pytest.raises(OperationalException) as e:
|
with pytest.raises(OperationalException):
|
||||||
dp = DataProvider(default_conf, exchange)
|
dp = DataProvider(default_conf, exchange)
|
||||||
dp.current_whitelist()
|
dp.current_whitelist()
|
||||||
|
Loading…
Reference in New Issue
Block a user