Adjust test to pathlib

This commit is contained in:
Matthias
2018-12-15 14:10:45 +01:00
parent 21aba1620c
commit 6c02cc5993
5 changed files with 11 additions and 10 deletions

View File

@@ -370,7 +370,7 @@ class Backtesting(object):
timerange = Arguments.parse_timerange(None if self.config.get(
'timerange') is None else str(self.config.get('timerange')))
data = history.load_data(
Path(self.config.get('datadir')) if self.config.get('datadir') else None,
Path(self.config['datadir']) if self.config.get('datadir') else None,
pairs=pairs,
ticker_interval=self.ticker_interval,
refresh_pairs=self.config.get('refresh_pairs', False),

View File

@@ -241,7 +241,7 @@ class Hyperopt(Backtesting):
timerange = Arguments.parse_timerange(None if self.config.get(
'timerange') is None else str(self.config.get('timerange')))
data = load_data(
datadir=Path(self.config.get('datadir')) if self.config.get('datadir') else None,
datadir=Path(self.config['datadir']) if self.config.get('datadir') else None,
pairs=self.config['exchange']['pair_whitelist'],
ticker_interval=self.ticker_interval,
timerange=timerange