Update tests/test_utils_tqdm_mod.py
Run CI Tests / test (push) Successful in 38s

This commit is contained in:
2025-07-30 16:10:22 +02:00
parent 31a8a51a5b
commit 53c62fecfb
+9 -2
View File
@@ -118,8 +118,15 @@ def test_float_alignment_in_bar():
assert expected in values, f"Missing expected value: {expected}"
# Check that all values are visually aligned, output with same length, to ensure that format_sizeof add the good number avec spaces
lengths = [len(v) for v in values]
assert len(set(lengths)) == 1, f"Misaligned values: {values}"
bar_segments = []
for line in lines:
match = re.search(r".*?\]", line)
if match:
bar_segments.append(match.group(0))
lengths = [len(seg) for seg in bar_segments]
assert len(set(lengths)) == 1
def test_custom_unit():