Update tests/test_utils_run_later.py
Run CI Tests / test (push) Successful in 2m37s

This commit is contained in:
2025-08-05 14:22:37 +02:00
parent 691f2f86ee
commit fbba560475
+4 -2
View File
@@ -1,5 +1,6 @@
import pytest
import time_machine
import io
from datetime import datetime, timedelta
from slic.utils.run_later import run_at, run_in, run_later, today, tomorrow, yesterday
@@ -122,13 +123,14 @@ def test_run_at_tqdm_multiple_updates(monkeypatch, capsys):
run_at(when, fexample)
captured = capsys.readouterr()
captured_text = output.getvalue()
assert "0%| |" in captured.err
assert "50%|█████ |" in captured.err
assert "100%|██████████|" in captured.err
assert "Function done!" in captured_text
assert "Function done!" in captured.out
# Test today/yesterday and tomorrow functions