Stop clock to avoid random failures on slow CI runs
This commit is contained in:
parent
39e19bd0c9
commit
bbedc4b63e
@ -12,6 +12,7 @@ from unittest.mock import ANY, MagicMock
|
||||
|
||||
import arrow
|
||||
import pytest
|
||||
import time_machine
|
||||
from pandas import DataFrame
|
||||
from telegram import Chat, Message, ReplyKeyboardMarkup, Update
|
||||
from telegram.error import BadRequest, NetworkError, TelegramError
|
||||
@ -2065,6 +2066,7 @@ def test_send_msg_sell_fill_notification(default_conf, mocker, direction,
|
||||
default_conf['telegram']['notification_settings']['exit_fill'] = 'on'
|
||||
telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf)
|
||||
|
||||
with time_machine.travel("2022-09-01 05:00:00 +00:00", tick=False) as t:
|
||||
telegram.send_msg({
|
||||
'type': RPCMessageType.EXIT_FILL,
|
||||
'trade_id': 1,
|
||||
|
Loading…
Reference in New Issue
Block a user