added tests for bot_start
This commit is contained in:
@@ -82,6 +82,11 @@ class StrategyTestV3(IStrategy):
|
||||
# })
|
||||
# return prot
|
||||
|
||||
bot_started = False
|
||||
|
||||
def bot_start(self):
|
||||
self.bot_started = True
|
||||
|
||||
def informative_pairs(self):
|
||||
|
||||
return []
|
||||
|
@@ -32,6 +32,7 @@ def test_strategy_test_v3(result, fee, is_short, side):
|
||||
assert type(indicators) is DataFrame
|
||||
assert type(strategy.populate_buy_trend(indicators, metadata)) is DataFrame
|
||||
assert type(strategy.populate_sell_trend(indicators, metadata)) is DataFrame
|
||||
assert strategy.bot_started is True
|
||||
|
||||
trade = Trade(
|
||||
open_rate=19_000,
|
||||
|
Reference in New Issue
Block a user