changeset cf8d361600a6 in trytond:default details: https://hg.tryton.org/trytond?cmd=changeset&node=cf8d361600a6 description: Test available_timezones diffstat:
trytond/tests/test_tools.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diffs (16 lines): diff -r d43aee74269c -r cf8d361600a6 trytond/tests/test_tools.py --- a/trytond/tests/test_tools.py Sun Oct 09 13:46:22 2022 +0200 +++ b/trytond/tests/test_tools.py Sun Oct 09 14:06:18 2022 +0200 @@ -303,6 +303,12 @@ now = dt.datetime(2022, 5, 17, tzinfo=zi) self.assertEqual(str(now), "2022-05-17 00:00:00+00:00") + def test_availabe_timezones(self): + "Test available_timezones" + available_timezones = timezone.available_timezones() + self.assertTrue(available_timezones) + self.assertIsInstance(available_timezones, set) + class StringPartitionedTestCase(unittest.TestCase): "Test StringPartitioned"