Skip to content
Snippets Groups Projects
Commit 1b7e2ffb authored by inso's avatar inso
Browse files

Fix last broken test

parent ccd75c00
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,11 @@ class TestRelativeToPast(unittest.TestCase, QuamashTest): ...@@ -59,7 +59,11 @@ class TestRelativeToPast(unittest.TestCase, QuamashTest):
referential = RelativeToPast(101, community, app, 100) referential = RelativeToPast(101, community, app, 100)
async def exec_test(): async def exec_test():
value = await referential.localized(units=True) value = await referential.localized(units=True)
self.assertEqual(value, "0.101000 UD(21/07/2000 03:25) TC") self.assertEqual(value, "0.101000 UD({0}) TC".format(QLocale.toString(
QLocale(),
QDateTime.fromTime_t(1452663088792),
QLocale.dateTimeFormat(QLocale(), QLocale.ShortFormat)
)))
self.lp.run_until_complete(exec_test()) self.lp.run_until_complete(exec_test())
@patch('sakia.core.Community') @patch('sakia.core.Community')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment