This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user