test_main.py adjusted (only beginning)
This commit is contained in:
parent
be6836b0ef
commit
b448890210
@ -8,7 +8,7 @@ import pytest
|
|||||||
from freqtrade import OperationalException
|
from freqtrade import OperationalException
|
||||||
from freqtrade.arguments import Arguments
|
from freqtrade.arguments import Arguments
|
||||||
from freqtrade.freqtradebot import FreqtradeBot
|
from freqtrade.freqtradebot import FreqtradeBot
|
||||||
from freqtrade.main import main, reconfigure
|
from freqtrade.main import main, Worker
|
||||||
from freqtrade.state import State
|
from freqtrade.state import State
|
||||||
from freqtrade.tests.conftest import log_has, patch_exchange
|
from freqtrade.tests.conftest import log_has, patch_exchange
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ def test_main_reload_conf(mocker, default_conf, caplog) -> None:
|
|||||||
|
|
||||||
# Raise exception as side effect to avoid endless loop
|
# Raise exception as side effect to avoid endless loop
|
||||||
reconfigure_mock = mocker.patch(
|
reconfigure_mock = mocker.patch(
|
||||||
'freqtrade.main.reconfigure', MagicMock(side_effect=Exception)
|
'freqtrade.main.Worker._reconfigure', MagicMock(side_effect=Exception)
|
||||||
)
|
)
|
||||||
|
|
||||||
with pytest.raises(SystemExit):
|
with pytest.raises(SystemExit):
|
||||||
|
Loading…
Reference in New Issue
Block a user