fix: Debug tests
This commit is contained in:
parent
802e63a9d7
commit
8c1b764a90
@ -1042,6 +1042,7 @@ class TestPurchaseInvoice(unittest.TestCase):
|
||||
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)
|
||||
|
@ -81,6 +81,7 @@ class TestServiceLevelAgreement(unittest.TestCase):
|
||||
|
||||
# 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 @@ class TestServiceLevelAgreement(unittest.TestCase):
|
||||
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"):
|
||||
|
Loading…
Reference in New Issue
Block a user