Skip to content

Commit

Permalink
fix: asset module test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait committed Jan 19, 2024
1 parent b840eb9 commit f604798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/fiscal_year/test_fiscal_year.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_record_generator():
]

start = 2012
end = now_datetime().year + 5
end = now_datetime().year + 25
for year in range(start, end):
test_records.append(
{
Expand Down
4 changes: 2 additions & 2 deletions erpnext/assets/doctype/asset/test_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ def test_pro_rata_depreciation_entry_for_wdv(self):
["2030-12-31", 28630.14, 28630.14],
["2031-12-31", 35684.93, 64315.07],
["2032-12-31", 17842.47, 82157.54],
["2033-06-06", 5342.46, 87500.0],
["2033-06-06", 5342.47, 87500.01],
]

schedules = [
Expand Down Expand Up @@ -957,7 +957,7 @@ def test_get_depreciation_amount(self):
},
)

depreciation_amount = get_depreciation_amount(asset, 100000, asset.finance_books[0])
depreciation_amount = get_depreciation_amount(asset, 100000, 100000, asset.finance_books[0])
self.assertEqual(depreciation_amount, 30000)

def test_make_depreciation_schedule(self):
Expand Down

0 comments on commit f604798

Please sign in to comment.