test(py-monitor): run test_falsy_epoch
This commit is contained in:
1 parent
f9723e2d7e
commit
c789706ec9
1 file changed
+6
@@ -69,6 +69,12 @@ class TimeTests(unittest.TestCase):
|
||||
def test_iso_now_shape(self):
|
||||
self.assertRegex(iso_now(), r"^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$")
|
||||
|
||||
def test_epoch_conversion_is_utc(self):
|
||||
self.assertEqual("2026-01-01 00:00:00", iso_from_epoch(1767225600))
|
||||
|
||||
def test_falsy_epoch(self):
|
||||
self.assertIsNone(iso_from_epoch(0))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user