fix: Debug tests
diff --git a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py
index ec93314..2ce65c1 100644
--- a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py
+++ b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py
@@ -1042,6 +1042,7 @@
where voucher_type='Purchase Invoice' and voucher_no=%s
order by account asc""", (purchase_invoice.name), as_dict=1)
+ print(gl_entries)
for i, gle in enumerate(gl_entries):
self.assertEqual(expected_gle[i][0], gle.account)
self.assertEqual(expected_gle[i][1], gle.debit)
diff --git a/erpnext/support/doctype/service_level_agreement/test_service_level_agreement.py b/erpnext/support/doctype/service_level_agreement/test_service_level_agreement.py
index 2a8446d..4ef4930 100644
--- a/erpnext/support/doctype/service_level_agreement/test_service_level_agreement.py
+++ b/erpnext/support/doctype/service_level_agreement/test_service_level_agreement.py
@@ -81,6 +81,7 @@
# check SLA custom fields created for leads
sla_fields = get_service_level_agreement_fields()
+ frappe.clear_cache(doctype=doctype)
meta = frappe.get_meta(doctype, cached=False)
for field in sla_fields:
@@ -219,9 +220,9 @@
lead.reload()
self.assertEqual(lead.agreement_status, 'Fulfilled')
- def tearDown(self):
- for d in frappe.get_all("Service Level Agreement"):
- frappe.delete_doc("Service Level Agreement", d.name, force=1)
+ # def tearDown(self):
+ # for d in frappe.get_all("Service Level Agreement"):
+ # frappe.delete_doc("Service Level Agreement", d.name, force=1)
def get_service_level_agreement(default_service_level_agreement=None, entity_type=None, entity=None, doctype="Issue"):