feat: round_value should support None

This commit is contained in:
Matthias
2025-12-02 07:10:33 +01:00
parent a013793b2f
commit 0f5427f4a0
2 changed files with 4 additions and 2 deletions

View File

@@ -57,6 +57,8 @@ def test_round_value():
assert round_value(222.2, 0, True) == "222"
assert round_value(float("nan"), 0, True) == "N/A"
assert round_value(float("nan"), 10, True) == "N/A"
assert round_value(None, 10, True) == "N/A"
assert round_value(None, 1, True) == "N/A"
def test_format_duration():