mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
minor: couple of typos fixed
This commit is contained in:
parent
ca7080c2bb
commit
6fc6eaf742
|
@ -132,7 +132,7 @@ class StrategyResolver(IResolver):
|
||||||
abs_paths.insert(0, Path(extra_dir).resolve())
|
abs_paths.insert(0, Path(extra_dir).resolve())
|
||||||
|
|
||||||
if ":" in strategy_name:
|
if ":" in strategy_name:
|
||||||
logger.info("loading base64 endocded strategy")
|
logger.info("loading base64 encoded strategy")
|
||||||
strat = strategy_name.split(":")
|
strat = strategy_name.split(":")
|
||||||
|
|
||||||
if len(strat) == 2:
|
if len(strat) == 2:
|
||||||
|
|
|
@ -66,7 +66,7 @@ def test_load_strategy(result):
|
||||||
assert 'adx' in resolver.strategy.advise_indicators(result, {'pair': 'ETH/BTC'})
|
assert 'adx' in resolver.strategy.advise_indicators(result, {'pair': 'ETH/BTC'})
|
||||||
|
|
||||||
|
|
||||||
def test_load_strategy_byte64(result):
|
def test_load_strategy_base64(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)})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user