Update tests/test_utils_pv.py
Run CI Tests / test (push) Successful in 1m0s

This commit is contained in:
2025-08-07 15:13:03 +02:00
parent 4706668f3e
commit d1e55b2746
+3 -1
View File
@@ -96,7 +96,9 @@ def test_put_with_progress_and_repr(value_new, value_before, expected_color):
color_matches = [line for line in printed_lines if expected_color in line]
assert color_matches, "Expected color code not found"
assert value_new and value_before in printed_lines
assert all(value_new in line for line in printed_lines), "new value not in all lines"
assert all(value_before in line for line in printed_lines), "old value not in all lines"
# Vérifie que la valeur finale est correcte
assert pv.get() == pytest.approx(value)