This commit is contained in:
Matthias
2019-05-20 20:13:01 +02:00
parent 58ced36445
commit 51aa469f67
5 changed files with 1 additions and 5 deletions

View File

@@ -114,7 +114,7 @@ def test_cleanup(mocker, default_conf, caplog) -> None:
def test_worker_running(mocker, default_conf, caplog) -> None:
mock_throttle = MagicMock()
mocker.patch('freqtrade.worker.Worker._throttle', mock_throttle)
mocker.patch('freqtrade.persistence.Trade.adjust_initial_stoploss', MagicMock())
mocker.patch('freqtrade.persistence.Trade.stoploss_reinitialization', MagicMock())
worker = get_patched_worker(mocker, default_conf)

View File

@@ -822,7 +822,6 @@ def test_stoploss_reinitialization(default_conf, fee):
assert trade_adj.initial_stop_loss == 0.96
assert trade_adj.initial_stop_loss_pct == -0.04
# Trailing stoploss (move stoplos up a bit)
trade.adjust_stop_loss(1.02, 0.04)
assert trade_adj.stop_loss == 0.9792