fix: old currency test
This commit is contained in:
parent
e0e1c15d76
commit
e7e8fcd622
2 changed files with 2 additions and 4 deletions
|
|
@ -17,10 +17,6 @@ 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")
|
||||
print(doc.currency)
|
||||
print("frappe.db.get_default('currency')")
|
||||
print(frappe.db.get_default("currency"))
|
||||
|
||||
self.assertEqual(format(100000, df, doc, format="#,###.##"), '₹ 100,000.00')
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ class TestFormatter(unittest.TestCase):
|
|||
self.assertEqual(format(100, df, doc), '₹ 100.00')
|
||||
|
||||
doc.currency = 'USD'
|
||||
print('doc.currency')
|
||||
print(doc.currency)
|
||||
self.assertEqual(format(100, df, doc), "$ 100.00")
|
||||
|
||||
frappe.db.set_default("currency", None)
|
||||
Loading…
Add table
Reference in a new issue