feat(py-monitor): add PriceTests()

This commit is contained in:
hoelee committed 2026-10-16 09:58:00 +08:00
1 parent d744be9054
commit 6be65312b0
1 file changed
+5
+5
View File
@@ -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()