makes sure latest test fixtures for currency exchange is retrieved before running test
This commit is contained in:
parent
9b827e5b95
commit
0a5db528b1
@ -114,6 +114,11 @@ class TestPaymentEntry(unittest.TestCase):
|
||||
self.assertEqual(outstanding_amount, 80)
|
||||
|
||||
def test_payment_entry_retrieves_last_exchange_rate(self):
|
||||
from erpnext.setup.doctype.currency_exchange.test_currency_exchange import test_records, save_new_records
|
||||
|
||||
test_records = test_records
|
||||
save_new_records(test_records)
|
||||
|
||||
pe = frappe.new_doc("Payment Entry")
|
||||
pe.payment_type = "Pay"
|
||||
pe.company = "_Test Company"
|
||||
@ -122,7 +127,7 @@ class TestPaymentEntry(unittest.TestCase):
|
||||
pe.paid_to = "_Test Bank - _TC"
|
||||
pe.paid_amount = 100
|
||||
pe.reference_no = "3"
|
||||
pe.reference_date = nowdate()
|
||||
pe.reference_date = "2016-01-10"
|
||||
pe.party_type = "Supplier"
|
||||
pe.party = "_Test Supplier USD"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user