Update test to cover this scenario
This commit is contained in:
parent
d54ee0eb04
commit
fb4dd6c2ac
@ -129,13 +129,16 @@ def test_strategy_override_minimal_roi(caplog, default_conf):
|
|||||||
default_conf.update({
|
default_conf.update({
|
||||||
'strategy': 'DefaultStrategy',
|
'strategy': 'DefaultStrategy',
|
||||||
'minimal_roi': {
|
'minimal_roi': {
|
||||||
|
"20": 0.1,
|
||||||
"0": 0.5
|
"0": 0.5
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
strategy = StrategyResolver.load_strategy(default_conf)
|
strategy = StrategyResolver.load_strategy(default_conf)
|
||||||
|
|
||||||
assert strategy.minimal_roi[0] == 0.5
|
assert strategy.minimal_roi[0] == 0.5
|
||||||
assert log_has("Override strategy 'minimal_roi' with value in config file: {'0': 0.5}.", caplog)
|
assert log_has(
|
||||||
|
"Override strategy 'minimal_roi' with value in config file: {'20': 0.1, '0': 0.5}.",
|
||||||
|
caplog)
|
||||||
|
|
||||||
|
|
||||||
def test_strategy_override_stoploss(caplog, default_conf):
|
def test_strategy_override_stoploss(caplog, default_conf):
|
||||||
|
Loading…
Reference in New Issue
Block a user