chore: remove potential flakyness from test
This commit is contained in:
@@ -2388,8 +2388,11 @@ def test_refresh_latest_ohlcv(mocker, default_conf, caplog, candle_type) -> None
|
|||||||
assert len(res) == 1
|
assert len(res) == 1
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("candle_type", [CandleType.FUTURES, CandleType.MARK, CandleType.SPOT])
|
@pytest.mark.parametrize("candle_type", [CandleType.FUTURES, CandleType.SPOT])
|
||||||
def test_refresh_latest_trades(mocker, default_conf, caplog, candle_type, tmp_path) -> None:
|
def test_refresh_latest_trades(
|
||||||
|
mocker, default_conf, caplog, candle_type, tmp_path, time_machine
|
||||||
|
) -> None:
|
||||||
|
time_machine.move_to(dt_now(), tick=False)
|
||||||
trades = [
|
trades = [
|
||||||
{
|
{
|
||||||
# unix timestamp ms
|
# unix timestamp ms
|
||||||
|
|||||||
Reference in New Issue
Block a user