chore: fix tests

This commit is contained in:
Mohammad Hasnain Mohsin Rajan 2021-06-28 18:30:55 +05:30 committed by GitHub
parent f5e40141af
commit 61deecbd7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,7 @@ class TestFormatter(unittest.TestCase):
frappe.db.set_default("currency", 'INR')
# if currency field is not passed then default currency should be used.
print(doc.currency)
self.assertEqual(format(100000, df, doc, format="#,###.##"), '₹ 100,000.00')
doc.currency = 'USD'