TW-1425: The 'age' format rounds in odd ways

- While duration formats are still not configurable, the break points for
  formatting units is shifted to be a little more predictable.
- Thanks to Black Ops testing.
This commit is contained in:
Paul Beckingham 2015-11-17 07:47:20 -05:00
parent ba098d790f
commit 253fd35dc7
3 changed files with 15 additions and 4 deletions

View file

@ -372,8 +372,8 @@ class TestDateFormats(TestCase):
def test_date_format_age(self):
"""Verify due.age formatting"""
code, out, err = self.t("xxx rc.report.xxx.columns:id,due.age")
self.assertRegexpMatches(out, r'1\s+1d')
self.assertRegexpMatches(out, r'2\s+-16h')
self.assertRegexpMatches(out, r'1\s+[0-9.]+d')
self.assertRegexpMatches(out, r'2\s+-[0-9.]+h')
def test_date_format_remaining(self):
"""Verify due.remaining formatting"""