Merge pull request #38431 from frappe/mergify/bp/version-15-hotfix/pr-38429

fix(minor): set capital WIP account before asset tests (#38429)
This commit is contained in:
Deepesh Garg 2023-11-30 08:15:11 +05:30 committed by GitHub
commit 277e81c68e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,9 @@ from erpnext.stock.doctype.purchase_receipt.test_purchase_receipt import make_pu
class TestAssetValueAdjustment(unittest.TestCase):
def setUp(self):
create_asset_data()
frappe.db.set_value(
"Company", "_Test Company", "capital_work_in_progress_account", "CWIP Account - _TC"
)
def test_current_asset_value(self):
pr = make_purchase_receipt(