From c1e2b364f4121217f983ddb4f6dda26d15dc0f55 Mon Sep 17 00:00:00 2001 From: hoelee Date: Thu, 15 Oct 2026 11:12:00 +0800 Subject: [PATCH] feat(py-monitor): add test_core.py() --- platform/py-monitor/tests/test_core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/py-monitor/tests/test_core.py b/platform/py-monitor/tests/test_core.py index 1dffd1bc..80586919 100644 --- a/platform/py-monitor/tests/test_core.py +++ b/platform/py-monitor/tests/test_core.py @@ -15,6 +15,10 @@ class UrlTests(unittest.TestCase): url = "https://media.example.com/abc.jpg_progressive_thumbnail" self.assertEqual("https://media.example.com/abc.jpg", strip_thumbnail_suffix(url)) + def test_strip_is_noop_without_suffix(self): + url = "https://media.example.com/abc.jpg" + self.assertEqual(url, strip_thumbnail_suffix(url)) + if __name__ == "__main__": unittest.main()