mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add test for keyboardinterrupt
This commit is contained in:
parent
5272ec85ea
commit
80d367fa08
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user