diff --git a/tests/test_utils_run_later.py b/tests/test_utils_run_later.py index 07fef0a94..23c1c6263 100644 --- a/tests/test_utils_run_later.py +++ b/tests/test_utils_run_later.py @@ -122,12 +122,13 @@ 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 + assert "Function done!" in captured_text # Test today/yesterday and tomorrow functions