fix(test): test_depr_entry_posting_with_income_account

This commit is contained in:
Saqib Ansari 2021-12-06 11:19:58 +05:30
parent 209750d036
commit 56df646067

View File

@ -903,6 +903,7 @@ class TestDepreciationBasics(AssetSetup):
depr_expense_account = frappe.get_doc("Account", "_Test Depreciations - _TC")
depr_expense_account.root_type = "Income"
depr_expense_account.parent_account = "Income - _TC"
depr_expense_account.save()
asset = create_asset(
item_code = "Macbook Pro",
@ -932,6 +933,7 @@ class TestDepreciationBasics(AssetSetup):
# resetting
depr_expense_account.root_type = "Expense"
depr_expense_account.parent_account = "Expenses - _TC"
depr_expense_account.save()
def test_clear_depreciation_schedule(self):
"""Tests if clear_depreciation_schedule() works as expected."""