Update tests/test_utils_tqdm_mod.py
Run CI Tests / test (push) Successful in 2m29s

This commit is contained in:
2025-08-29 16:37:40 +02:00
parent 889a5ccb3e
commit e3db6c30da
+8 -4
View File
@@ -121,13 +121,17 @@ def test_float_alignment_in_bar():
print("\n")
bar_segments = []
for line in lines:
match = re.search(r".*?\]", line)
match = re.search(r"^.*?\d{1,3}\.\d/100\.1", line)
if match:
bar_segments.append(match.group(0))
print(match.group(0))
seg = match.group(0)
# ignore starting automatique tqdm bar
if "0/100.1" not in seg:
bar_segments.append(seg)
print(seg)
lengths = [len(seg) for seg in bar_segments]
assert len(set(lengths)) == 1
assert len(set(lengths)) == 1, f"Not aligned: {bar_segments} (lengths={lengths})"
def test_custom_unit():