Skip to content

Commit

Permalink
Check that dataprovider is part of strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Mar 25, 2019
1 parent bd29b7d commit 226fc3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions freqtrade/tests/optimize/test_backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from freqtrade.data import history
from freqtrade.data.btanalysis import evaluate_result_multi
from freqtrade.data.converter import parse_ticker_dataframe
from freqtrade.data.dataprovider import DataProvider
from freqtrade.optimize import get_timeframe
from freqtrade.optimize.backtesting import (Backtesting, setup_configuration,
start)
Expand Down Expand Up @@ -346,6 +347,7 @@ def test_backtesting_init(mocker, default_conf, order_types) -> None:
assert callable(backtesting.strategy.tickerdata_to_dataframe)
assert callable(backtesting.advise_buy)
assert callable(backtesting.advise_sell)
assert isinstance(backtesting.strategy.dp, DataProvider)
get_fee.assert_called()
assert backtesting.fee == 0.5
assert not backtesting.strategy.order_types["stoploss_on_exchange"]
Expand Down

0 comments on commit 226fc3d

Please sign in to comment.