Add test for keyboardinterrupt

This commit is contained in:
Matthias 2020-05-08 14:24:30 +02:00
parent 5272ec85ea
commit 80d367fa08

View File

@ -135,6 +135,10 @@ def test_main_operational_exception1(mocker, default_conf, caplog) -> None:
'freqtrade.commands.list_commands.available_exchanges',
MagicMock(side_effect=KeyboardInterrupt)
)
with pytest.raises(SystemExit):
main(args)
assert log_has_re(r'SIGINT.*', caplog)
def test_main_reload_conf(mocker, default_conf, caplog) -> None: