renaming edge to edge_cli for command line version
This commit is contained in:
parent
bb9a1e5f9f
commit
f666d1596b
@ -293,7 +293,7 @@ class Arguments(object):
|
|||||||
Builds and attaches all subcommands
|
Builds and attaches all subcommands
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
from freqtrade.optimize import backtesting, hyperopt, edge
|
from freqtrade.optimize import backtesting, hyperopt, edge_cli
|
||||||
|
|
||||||
subparsers = self.parser.add_subparsers(dest='subparser')
|
subparsers = self.parser.add_subparsers(dest='subparser')
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ class Arguments(object):
|
|||||||
|
|
||||||
# Add edge subcommand
|
# Add edge subcommand
|
||||||
edge_cmd = subparsers.add_parser('edge', help='edge module')
|
edge_cmd = subparsers.add_parser('edge', help='edge module')
|
||||||
edge_cmd.set_defaults(func=edge.start)
|
edge_cmd.set_defaults(func=edge_cli.start)
|
||||||
self.optimizer_shared_options(edge_cmd)
|
self.optimizer_shared_options(edge_cmd)
|
||||||
self.edge_options(edge_cmd)
|
self.edge_options(edge_cmd)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import json
|
|||||||
from typing import List
|
from typing import List
|
||||||
from freqtrade.edge import Edge
|
from freqtrade.edge import Edge
|
||||||
from freqtrade.arguments import Arguments
|
from freqtrade.arguments import Arguments
|
||||||
from freqtrade.optimize.edge import (EdgeCli, setup_configuration, start)
|
from freqtrade.optimize.edge_cli import (EdgeCli, setup_configuration, start)
|
||||||
from freqtrade.tests.conftest import log_has, patch_exchange
|
from freqtrade.tests.conftest import log_has, patch_exchange
|
||||||
|
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ def test_start(mocker, fee, edge_conf, caplog) -> None:
|
|||||||
start_mock = MagicMock()
|
start_mock = MagicMock()
|
||||||
mocker.patch('freqtrade.exchange.Exchange.get_fee', fee)
|
mocker.patch('freqtrade.exchange.Exchange.get_fee', fee)
|
||||||
patch_exchange(mocker)
|
patch_exchange(mocker)
|
||||||
mocker.patch('freqtrade.optimize.edge.EdgeCli.start', start_mock)
|
mocker.patch('freqtrade.optimize.edge_cli.EdgeCli.start', start_mock)
|
||||||
mocker.patch('freqtrade.configuration.open', mocker.mock_open(
|
mocker.patch('freqtrade.configuration.open', mocker.mock_open(
|
||||||
read_data=json.dumps(edge_conf)
|
read_data=json.dumps(edge_conf)
|
||||||
))
|
))
|
Loading…
Reference in New Issue
Block a user