Merge pull request #1934 from freqtrade/edge_override_stake_amount

Edge cli should override stake_amount
This commit is contained in:
Misagh
2019-06-15 14:28:16 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -117,8 +117,10 @@ def test_start(mocker, fee, edge_conf, caplog) -> None:
def test_edge_init(mocker, edge_conf) -> None:
patch_exchange(mocker)
edge_conf['stake_amount'] = 20
edge_cli = EdgeCli(edge_conf)
assert edge_cli.config == edge_conf
assert edge_cli.config['stake_amount'] == 'unlimited'
assert callable(edge_cli.edge.calculate)