Add tests for failure cases

This commit is contained in:
Matthias
2020-11-21 15:51:39 +01:00
parent 6b672cd0b9
commit f8fab5c4f8
2 changed files with 30 additions and 7 deletions

View File

@@ -29,9 +29,9 @@ class VolatilityFilter(IPairList):
self._pair_cache: TTLCache = TTLCache(maxsize=100, ttl=self._refresh_period)
if self._days < 1:
raise OperationalException("VolatilityFilter requires min_days_listed to be >= 1")
raise OperationalException("VolatilityFilter requires volatility_over_days to be >= 1")
if self._days > exchange.ohlcv_candle_limit:
raise OperationalException("VolatilityFilter requires min_days_listed to not exceed "
raise OperationalException("VolatilityFilter requires volatility_over_days to not exceed "
"exchange max request size "
f"({exchange.ohlcv_candle_limit})")