Add missing test to confirm backtesting won't send messages

This commit is contained in:
Matthias 2022-07-27 06:51:56 +02:00
parent 0adfa4d9ef
commit 31ddec8348

View File

@ -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