From 68c9768d41f62cc3a8193d2340ec31e1f73e9e0a Mon Sep 17 00:00:00 2001 From: hoelee Date: Mon, 19 Oct 2026 08:51:00 +0800 Subject: [PATCH] feat(py-monitor): add TimeTests() --- platform/py-monitor/tests/test_core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/py-monitor/tests/test_core.py b/platform/py-monitor/tests/test_core.py index 67d164ec..62fadb74 100644 --- a/platform/py-monitor/tests/test_core.py +++ b/platform/py-monitor/tests/test_core.py @@ -64,6 +64,11 @@ class KeywordTests(unittest.TestCase): self.assertFalse(title_matches_keyword("x", [])) +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}$") + if __name__ == "__main__": unittest.main()