Adapt after rebase
This commit is contained in:
parent
76fbb89a03
commit
40ee86b357
@ -91,8 +91,8 @@ class Backtesting(object):
|
|||||||
self.strategy = strategy
|
self.strategy = strategy
|
||||||
self.ticker_interval = self.config.get('ticker_interval')
|
self.ticker_interval = self.config.get('ticker_interval')
|
||||||
self.tickerdata_to_dataframe = strategy.tickerdata_to_dataframe
|
self.tickerdata_to_dataframe = strategy.tickerdata_to_dataframe
|
||||||
self.populate_buy_trend = strategy.populate_buy_trend
|
self.advise_buy = strategy.advise_buy
|
||||||
self.populate_sell_trend = strategy.populate_sell_trend
|
self.advise_sell = strategy.advise_sell
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_timeframe(data: Dict[str, DataFrame]) -> Tuple[arrow.Arrow, arrow.Arrow]:
|
def get_timeframe(data: Dict[str, DataFrame]) -> Tuple[arrow.Arrow, arrow.Arrow]:
|
||||||
|
@ -775,8 +775,7 @@ def test_backtest_start_live(default_conf, mocker, caplog):
|
|||||||
|
|
||||||
|
|
||||||
def test_backtest_start_multi_strat(default_conf, mocker, caplog):
|
def test_backtest_start_multi_strat(default_conf, mocker, caplog):
|
||||||
conf = deepcopy(default_conf)
|
default_conf['exchange']['pair_whitelist'] = ['UNITTEST/BTC']
|
||||||
conf['exchange']['pair_whitelist'] = ['UNITTEST/BTC']
|
|
||||||
mocker.patch('freqtrade.exchange.Exchange.get_ticker_history',
|
mocker.patch('freqtrade.exchange.Exchange.get_ticker_history',
|
||||||
new=lambda s, n, i: _load_pair_as_ticks(n, i))
|
new=lambda s, n, i: _load_pair_as_ticks(n, i))
|
||||||
patch_exchange(mocker)
|
patch_exchange(mocker)
|
||||||
@ -788,7 +787,7 @@ def test_backtest_start_multi_strat(default_conf, mocker, caplog):
|
|||||||
mocker.patch('freqtrade.optimize.backtesting.Backtesting._generate_text_table_strategy',
|
mocker.patch('freqtrade.optimize.backtesting.Backtesting._generate_text_table_strategy',
|
||||||
gen_strattable_mock)
|
gen_strattable_mock)
|
||||||
mocker.patch('freqtrade.configuration.open', mocker.mock_open(
|
mocker.patch('freqtrade.configuration.open', mocker.mock_open(
|
||||||
read_data=json.dumps(conf)
|
read_data=json.dumps(default_conf)
|
||||||
))
|
))
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
Loading…
Reference in New Issue
Block a user