Merge pull request #38429 from GursheenK/set-cwip-account-for-asset-tests

fix(minor): set capital WIP account before asset tests
This commit is contained in:
Deepesh Garg 2023-11-29 18:50:05 +05:30 committed by GitHub
commit 591f4ebdca
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(