mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-09-20 09:31:12 +00:00
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:
parent
454c2343a8
commit
33bf7f9f30
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user