mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
refactor(test): clear old records
This commit is contained in:
@@ -12,6 +12,22 @@ from erpnext.controllers.sales_and_purchase_return import make_return_doc
|
|||||||
|
|
||||||
|
|
||||||
class TestGeneralLedger(FrappeTestCase):
|
class TestGeneralLedger(FrappeTestCase):
|
||||||
|
def setUp(self):
|
||||||
|
self.company = "_Test Company"
|
||||||
|
self.clear_old_records()
|
||||||
|
|
||||||
|
def clear_old_records(self):
|
||||||
|
doctype_list = [
|
||||||
|
"GL Entry",
|
||||||
|
"Payment Ledger Entry",
|
||||||
|
"Sales Invoice",
|
||||||
|
"Purchase Invoice",
|
||||||
|
"Payment Entry",
|
||||||
|
"Journal Entry",
|
||||||
|
]
|
||||||
|
for doctype in doctype_list:
|
||||||
|
qb.from_(qb.DocType(doctype)).delete().where(qb.DocType(doctype).company == self.company).run()
|
||||||
|
|
||||||
def test_foreign_account_balance_after_exchange_rate_revaluation(self):
|
def test_foreign_account_balance_after_exchange_rate_revaluation(self):
|
||||||
"""
|
"""
|
||||||
Checks the correctness of balance after exchange rate revaluation
|
Checks the correctness of balance after exchange rate revaluation
|
||||||
|
|||||||
Reference in New Issue
Block a user