From 4b0592c8cdc5879100da391793444324ac779971 Mon Sep 17 00:00:00 2001 From: Daniel Johnson Date: Sun, 17 Dec 2023 17:21:03 -0500 Subject: [PATCH] Update unit tests to represent the new rounding behavior Truncating the minutes part of a playtime was unstable; format(parse(x) didn't result in 'x'; rounding fixes that. But the unit tests were impacted, so let's update them. Resolves #5191 --- tests/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index 3a5cef005..e5097f998 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -92,7 +92,7 @@ class TestStringUtils(TestCase): self.assertEqual(strings.get_formatted_playtime('-'), strings.NO_PLAYTIME) self.assertEqual(strings.get_formatted_playtime(0.5), "30 minutes") self.assertEqual(strings.get_formatted_playtime(1.5), "1 hour 30 minutes") - self.assertEqual(strings.get_formatted_playtime(45.90), "45 hours 53 minutes") + self.assertEqual(strings.get_formatted_playtime(45.90), "45 hours 54 minutes") class TestVersionSort(TestCase):