add logic for stoploss reinitialization after startup

This commit is contained in:
Matthias
2019-05-20 07:06:40 +02:00
parent 349c0619aa
commit 6a5daab520
3 changed files with 23 additions and 0 deletions

View File

@@ -114,6 +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())
worker = get_patched_worker(mocker, default_conf)