|
|
|
|
@ -469,7 +469,6 @@ def test_start_new_strategy(mocker, caplog):
|
|
|
|
|
assert log_has_re("Writing strategy to .*", caplog)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_start_new_strategy_DefaultStrat(mocker, caplog):
|
|
|
|
|
args = [
|
|
|
|
|
"new-strategy",
|
|
|
|
|
@ -481,6 +480,15 @@ def test_start_new_strategy_DefaultStrat(mocker, caplog):
|
|
|
|
|
start_new_strategy(get_args(args))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_start_new_strategy_no_arg(mocker, caplog):
|
|
|
|
|
args = [
|
|
|
|
|
"new-strategy",
|
|
|
|
|
]
|
|
|
|
|
with pytest.raises(OperationalException,
|
|
|
|
|
match="`new-strategy` requires --strategy to be set."):
|
|
|
|
|
start_new_strategy(get_args(args))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_download_data_keyboardInterrupt(mocker, caplog, markets):
|
|
|
|
|
dl_mock = mocker.patch('freqtrade.utils.refresh_backtest_ohlcv_data',
|
|
|
|
|
MagicMock(side_effect=KeyboardInterrupt))
|
|
|
|
|
|