diff --git a/healthcare/healthcare/custom_doctype/test_sales_invoice.py b/healthcare/healthcare/custom_doctype/test_sales_invoice.py index de3dee762b..1880e1a4ab 100644 --- a/healthcare/healthcare/custom_doctype/test_sales_invoice.py +++ b/healthcare/healthcare/custom_doctype/test_sales_invoice.py @@ -1,10 +1,12 @@ import frappe from frappe.tests import IntegrationTestCase +EXTRA_TEST_RECORD_DEPENDENCIES = ["Sales Invoice"] + class TestSalesInvoice(IntegrationTestCase): def test_set_healthcare_services_should_preserve_state(self): - invoice = frappe.copy_doc(frappe.get_test_records("Sales Invoice")[0]) # FIXME: test records + invoice = frappe.copy_doc(self.globalTestRecords["Sales Invoice"][0]) count = len(invoice.items) item = invoice.items[0]