mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Adapt to pair_to_strat methology
This commit is contained in:
parent
038e97667f
commit
5b8ee214f9
|
@ -67,9 +67,8 @@ def test_load_strategy(result):
|
||||||
def test_load_strategy_byte64(result):
|
def test_load_strategy_byte64(result):
|
||||||
with open("freqtrade/tests/strategy/test_strategy.py", "r") as file:
|
with open("freqtrade/tests/strategy/test_strategy.py", "r") as file:
|
||||||
encoded_string = urlsafe_b64encode(file.read().encode("utf-8")).decode("utf-8")
|
encoded_string = urlsafe_b64encode(file.read().encode("utf-8")).decode("utf-8")
|
||||||
resolver = StrategyResolver({'strategy': 'TestStrategy:{}'.format(encoded_string)})
|
resolver = StrategyResolver({'strategy': 'TestStrategy:{}'.format(encoded_string)})
|
||||||
assert hasattr(resolver.strategy, 'populate_indicators')
|
assert 'adx' in resolver.strategy.advise_indicators(result, 'ETH/BTC')
|
||||||
assert 'adx' in resolver.strategy.populate_indicators(result)
|
|
||||||
|
|
||||||
|
|
||||||
def test_load_strategy_invalid_directory(result, caplog):
|
def test_load_strategy_invalid_directory(result, caplog):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user