3
0
Fork 0

feat: add make_utc() function, app method

as prep for dropping timezone from DB columns
This commit is contained in:
Lance Edgar 2025-12-15 13:06:40 -06:00
parent 1a3756f47c
commit 900937826c
4 changed files with 107 additions and 0 deletions

View file

@ -426,6 +426,11 @@ app_title = WuttaTest
name = self.app.make_full_name("Fred", "", "Flintstone", "")
self.assertEqual(name, "Fred Flintstone")
def test_make_utc(self):
dt = self.app.make_utc()
self.assertIsInstance(dt, datetime.datetime)
self.assertIsNone(dt.tzinfo)
def test_make_uuid(self):
uuid = self.app.make_uuid()
self.assertEqual(len(uuid), 32)