refactor(test): fix flaky test

(cherry picked from commit 0e256b8b29)
This commit is contained in:
ruthra kumar
2024-07-02 17:00:16 +05:30
committed by Mergify
parent f31ed75578
commit 72b93805fd

View File

@@ -2920,6 +2920,7 @@ class TestPurchaseReceipt(FrappeTestCase):
company_doc = frappe.get_doc("Company", test_company)
company_doc.enable_perpetual_inventory = True
company_doc.stock_received_but_not_billed = stock_rbnb
company_doc.default_inventory_account = stock_in_hand
company_doc.save()
packaging_charges_account = create_account(
@@ -3011,6 +3012,7 @@ class TestPurchaseReceipt(FrappeTestCase):
company_doc.enable_perpetual_inventory = False
company_doc.stock_received_but_not_billed = None
company_doc.default_inventory_account = None
company_doc.save()
def create_lcv(self, receipt_document_type, receipt_document, company, expense_account, charges=50):