Skip to content

Commit

Permalink
test: sales invoice override - use globalTestRecords
Browse files Browse the repository at this point in the history
  • Loading branch information
akurungadam committed Oct 22, 2024
1 parent b972c57 commit f0dc3ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion healthcare/healthcare/custom_doctype/test_sales_invoice.py
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit f0dc3ac

Please sign in to comment.