fix mypy and tests

This commit is contained in:
xmatthias
2018-06-26 07:08:09 +02:00
committed by Matthias
parent 19b9966417
commit 2e6e5029ba
2 changed files with 4 additions and 4 deletions

View File

@@ -146,7 +146,7 @@ def _trend(signals, buy_value, sell_value):
return signals
def _trend_alternate(dataframe=None):
def _trend_alternate(dataframe=None, pair=None):
signals = dataframe
low = signals['low']
n = len(low)
@@ -623,7 +623,7 @@ def test_backtest_ticks(default_conf, fee, mocker):
def test_backtest_clash_buy_sell(mocker, default_conf):
# Override the default buy trend function in our default_strategy
def fun(dataframe=None):
def fun(dataframe=None, pair=None):
buy_value = 1
sell_value = 1
return _trend(dataframe, buy_value, sell_value)
@@ -638,7 +638,7 @@ def test_backtest_clash_buy_sell(mocker, default_conf):
def test_backtest_only_sell(mocker, default_conf):
# Override the default buy trend function in our default_strategy
def fun(dataframe=None):
def fun(dataframe=None, pair=None):
buy_value = 0
sell_value = 1
return _trend(dataframe, buy_value, sell_value)