feat: add make_utc() function, app method
as prep for dropping timezone from DB columns
This commit is contained in:
parent
1a3756f47c
commit
900937826c
4 changed files with 107 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue