Update tests/test_utils_run_later.py
Run CI Tests / test (push) Successful in 1m46s

This commit is contained in:
2025-08-04 18:00:01 +02:00
parent 6e4dfd4e9a
commit ca94ffb283
+3 -3
View File
@@ -64,9 +64,9 @@ def test_run_in(monkeypatch, capsys):
fake_dt = FakeDatetime(base)
# Patch time and delay mechanisms
monkeypatch.setattr("slic.utils.time_runner.datetime", fake_dt)
monkeypatch.setattr("slic.utils.time_runner.sleep", lambda x: None)
monkeypatch.setattr("slic.utils.time_runner.tqdm_mod", lambda *a, **k: DummyBar())
monkeypatch.setattr("slic.utils.run_later.datetime", fake_dt)
monkeypatch.setattr("slic.utils.run_later.sleep", lambda x: None)
monkeypatch.setattr("slic.utils.run_later.tqdm_mod", lambda *a, **k: DummyBar())
# Should not trigger yet
run_in(timedelta(seconds=20), fexample, "not yet")