mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
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
This commit is contained in:
parent
7627fa47c1
commit
4b0592c8cd
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue