fix: add app.today() convenience method
This commit is contained in:
parent
be6ac16ea7
commit
b09b991d15
2 changed files with 17 additions and 1 deletions
|
|
@ -510,6 +510,10 @@ app_title = WuttaTest
|
|||
self.assertIsInstance(dt, datetime.datetime)
|
||||
self.assertIsNone(dt.tzinfo)
|
||||
|
||||
def test_today(self):
|
||||
today = self.app.today()
|
||||
self.assertIsInstance(today, datetime.date)
|
||||
|
||||
def test_make_str_uuid(self):
|
||||
uuid = self.app.make_str_uuid()
|
||||
self.assertEqual(len(uuid), 32)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue