Update tests/test_utils_rangebar.py
Run CI Tests / test (push) Has been cancelled

This commit is contained in:
2025-08-29 11:06:34 +02:00
parent 365122bf37
commit b630d274b5
+1 -2
View File
@@ -3,7 +3,6 @@ import pytest
import os
import sys
# pour s'assurer que slic est bien importable
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from slic.utils.rangebar import RangeBar
@@ -41,7 +40,7 @@ def test_zero_progress_bar(capsys):
with RangeBar(0, 100, width=10, units="kg", fmt=".0f") as bar:
bar.show(0)
expected_bar = f"{' ' * 10}" # pas de bloc au tout début
expected_bar = f"{' ' * 10}" # not bloc at the start
captured = capsys.readouterr()
lines = captured.out.strip("\r\n").split("\r")
assert lines[0].startswith("[ 0 kg |")