Mercurial > p > roundup > code
comparison test/test_dates.py @ 8285:2bf0c4e7795e
fix: issue2551390 - Replace text input/calendar popup with native date input
Docs, code and test changes for the changeover to a native date
element.
See issue for details.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 18 Jan 2025 12:23:23 -0500 |
| parents | c8a931aa7514 |
| children |
comparison
equal
deleted
inserted
replaced
| 8284:92dad05379f9 | 8285:2bf0c4e7795e |
|---|---|
| 481 d = datetime.datetime.now() | 481 d = datetime.datetime.now() |
| 482 Date(d) | 482 Date(d) |
| 483 toomuch = datetime.MAXYEAR + 1 | 483 toomuch = datetime.MAXYEAR + 1 |
| 484 self.assertRaises(ValueError, Date, (toomuch, 1, 1, 0, 0, 0, 0, 1, -1)) | 484 self.assertRaises(ValueError, Date, (toomuch, 1, 1, 0, 0, 0, 0, 1, -1)) |
| 485 | 485 |
| 486 def testRfc3339Form(self): | |
| 487 ae = self.assertEqual | |
| 488 d = Date('2003-11-01T00:00:00') | |
| 489 self.assertEqual(str(d), '2003-11-01.00:00:00') | |
| 490 | |
| 486 def testSimpleTZ(self): | 491 def testSimpleTZ(self): |
| 487 ae = self.assertEqual | 492 ae = self.assertEqual |
| 488 # local to utc | 493 # local to utc |
| 489 date = Date('2006-04-04.12:00:00', 2) | 494 date = Date('2006-04-04.12:00:00', 2) |
| 490 ae(str(date), '2006-04-04.10:00:00') | 495 ae(str(date), '2006-04-04.10:00:00') |
