Ensure test doesn't fail based on daytime

failed if it's run in the first hour of the (UTC) day
This commit is contained in:
Matthias 2023-09-14 20:05:01 +02:00
parent 454c2343a8
commit 33bf7f9f30

View File

@ -263,7 +263,11 @@ def test_rpc_status_table(default_conf, ticker, fee, mocker) -> None:
assert isnan(fiat_profit_sum)
def test__rpc_timeunit_profit(default_conf_usdt, ticker, fee, markets, mocker) -> None:
def test__rpc_timeunit_profit(
default_conf_usdt, ticker, fee, markets, mocker, time_machine) -> None:
time_machine.move_to("2023-09-05 10:00:00 +00:00", tick=False)
mocker.patch('freqtrade.rpc.telegram.Telegram', MagicMock())
mocker.patch.multiple(
EXMS,