This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user