mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add missing test to confirm backtesting won't send messages
This commit is contained in:
parent
0adfa4d9ef
commit
31ddec8348
|
@ -330,3 +330,8 @@ def test_dp_send_msg(default_conf):
|
|||
assert msg not in dp._msg_queue
|
||||
dp.send_msg(msg, always_send=True)
|
||||
assert msg in dp._msg_queue
|
||||
|
||||
default_conf["runmode"] = RunMode.BACKTEST
|
||||
dp = DataProvider(default_conf, None)
|
||||
dp.send_msg(msg, always_send=True)
|
||||
assert msg not in dp._msg_queue
|
||||
|
|
Loading…
Reference in New Issue
Block a user