From e54308a3ef27de7720fc6f5d6415461bfe3040c7 Mon Sep 17 00:00:00 2001 From: hoelee Date: Fri, 16 Oct 2026 09:58:00 +0800 Subject: [PATCH] feat(py-monitor): add PriceTests() --- 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 6d8fb404..1e116397 100644 --- a/platform/py-monitor/tests/test_core.py +++ b/platform/py-monitor/tests/test_core.py @@ -32,6 +32,11 @@ class UrlTests(unittest.TestCase): self.assertEqual("", normalize_product_url(None)) +class PriceTests(unittest.TestCase): + + def test_parses_thousands_separator(self): + self.assertEqual(1250.5, parse_price("RM 1,250.50")) + if __name__ == "__main__": unittest.main()